File tree Expand file tree Collapse file tree 5 files changed +1186
-44
lines changed Expand file tree Collapse file tree 5 files changed +1186
-44
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ functions:
76
76
- /app
77
77
- ' --env'
78
78
- PROJECT_DIRECTORY=/app
79
- - ' ubuntu:20 .04'
79
+ - ' ubuntu:22 .04'
80
80
- /bin/bash
81
81
- /app/.evergreen/run-tests-ubuntu.sh
82
82
run prebuild :
@@ -109,6 +109,7 @@ functions:
109
109
env :
110
110
PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
111
111
NODE_LTS_VERSION : ${NODE_LTS_VERSION}
112
+ NPM_VERSION : " 9"
112
113
113
114
pre :
114
115
- func : fetch source
@@ -139,6 +140,7 @@ buildvariants:
139
140
- run-prebuild-force-publish
140
141
expansions :
141
142
NODE_LTS_VERSION : 14
143
+ NPM_VERSION : 9
142
144
- name : macos-m1
143
145
display_name : MacOS M1
144
146
run_on : macos-1100-arm64
@@ -171,7 +173,6 @@ buildvariants:
171
173
packager_distro : ubuntu1804
172
174
packager_arch : x86_64
173
175
tasks :
174
- - run-tests-ubuntu
175
176
- run-prebuild
176
177
- run-prebuild-force-publish
177
178
- name : ubuntu1804-arm64
@@ -182,6 +183,23 @@ buildvariants:
182
183
packager_distro : ubuntu1804
183
184
packager_arch : arm64
184
185
tasks :
185
- - run-tests-ubuntu
186
186
- run-prebuild
187
187
- run-prebuild-force-publish
188
+ - name : ubuntu2204-64
189
+ display_name : ' Ubuntu 22.04 64-bit'
190
+ run_on : ubuntu2204-small
191
+ expansions :
192
+ has_packages : true
193
+ packager_distro : ubuntu2204
194
+ packager_arch : x86_64
195
+ tasks :
196
+ - run-tests-ubuntu
197
+ - name : ubuntu2204-arm64
198
+ display_name : ' Ubuntu 22.04 arm64'
199
+ run_on : ubuntu2204-arm64-small
200
+ expansions :
201
+ has_packages : true
202
+ packager_distro : ubuntu2204
203
+ packager_arch : arm64
204
+ tasks :
205
+ - run-tests-ubuntu
Original file line number Diff line number Diff line change 2
2
set -o errexit # Exit the script with error if any of the commands fail
3
3
4
4
NODE_LTS_VERSION=${NODE_LTS_VERSION:- 14}
5
+ # npm version can be defined in the environment for cases where we need to install
6
+ # a version lower than latest to support EOL Node versions.
7
+ NPM_VERSION=${NPM_VERSION:- latest}
5
8
6
9
source " ${PROJECT_DIRECTORY} /.evergreen/init-node-and-npm-env.sh"
7
10
94
97
fi
95
98
96
99
if [[ $operating_system != " win" ]]; then
97
- # Update npm to latest when we can
98
- npm install --global npm@latest
100
+ npm install --global npm@$NPM_VERSION
99
101
hash -r
100
102
fi
101
103
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export DEBIAN_FRONTEND=noninteractive
17
17
echo " Installing all the packages required in this test"
18
18
apt-get update
19
19
apt-get -y -qq install \
20
- python curl \
20
+ python3 curl \
21
21
build-essential libkrb5-dev \
22
22
krb5-user krb5-kdc krb5-admin-server \
23
23
apache2 libapache2-mod-auth-gssapi
You can’t perform that action at this time.
0 commit comments