Skip to content

Commit 3eea83e

Browse files
committed
chore(ci): use devtools toolchain instead of nvm
1 parent 4a79c3c commit 3eea83e

File tree

3 files changed

+4
-59
lines changed

3 files changed

+4
-59
lines changed

.evergreen.yml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,6 @@ functions:
55
- command: git.get_project
66
params:
77
directory: src
8-
install_node:
9-
- command: shell.exec
10-
params:
11-
working_dir: src
12-
shell: bash
13-
script: |
14-
set -e
15-
set -x
16-
17-
export NODE_VERSION=16.19.0
18-
bash .evergreen/install-node.sh
198
install:
209
- command: shell.exec
2110
params:
@@ -25,7 +14,7 @@ functions:
2514
set -e
2615
set -x
2716
28-
. .evergreen/use-node.sh
17+
export PATH=/opt/devtools/node16/bin:$PATH
2918
npm ci
3019
check:
3120
- command: shell.exec
@@ -36,7 +25,7 @@ functions:
3625
set -e
3726
set -x
3827
39-
. .evergreen/use-node.sh
28+
export PATH=/opt/devtools/node16/bin:$PATH
4029
npm run compile
4130
npm run check
4231
test:
@@ -60,7 +49,7 @@ functions:
6049
# just keeps timing out.
6150
if echo "${distro_id}" | grep -q ubuntu; then export SKIP_REGULAR_BROWSER_TESTING=true; fi
6251
63-
. .evergreen/use-node.sh
52+
export PATH=/opt/devtools/node16/bin:$PATH
6453
npm run test-ci
6554
test_electron:
6655
- command: shell.exec
@@ -77,26 +66,23 @@ functions:
7766
set -e
7867
set -x
7968
80-
. .evergreen/use-node.sh
69+
export PATH=/opt/devtools/node16/bin:$PATH
8170
npm run test-electron
8271
8372
tasks:
8473
- name: test
8574
commands:
8675
- func: checkout
87-
- func: install_node
8876
- func: install
8977
- func: test
9078
- name: test_electron
9179
commands:
9280
- func: checkout
93-
- func: install_node
9481
- func: install
9582
- func: test_electron
9683
- name: check
9784
commands:
9885
- func: checkout
99-
- func: install_node
10086
- func: install
10187
- func: check
10288

.evergreen/install-node.sh

Lines changed: 0 additions & 33 deletions
This file was deleted.

.evergreen/use-node.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)