@@ -69,20 +69,30 @@ commands:
69
69
- run :
70
70
name : pip install
71
71
command : << parameters.python >> -m pip install -r requirements-dev.txt
72
- setup-latest-node :
73
- description : " setup latest node"
72
+ install-node-version :
73
+ description : " install speific version of node"
74
+ parameters :
75
+ node_version :
76
+ description : " version of node to install"
77
+ type : string
74
78
steps :
75
79
- run :
76
- name : setup latest node
80
+ name : setup node v<< parameters.node_version >>
77
81
command : |
78
82
cd $HOME
79
- wget https://nodejs.org/dist/v19.0.0/node-v19.0.0-linux-x64.tar.xz
80
- tar xf node-v19.0.0-linux-x64.tar.xz
81
- echo "NODE_JS = [os.path.expanduser('~/node-v19.0.0-linux-x64/bin/node')]" >> ~/emsdk/.emscripten
83
+ version=<< parameters.node_version >>
84
+ wget https://nodejs.org/dist/v${version}/node-v${version}-linux-x64.tar.xz
85
+ tar xf node-v${version}-linux-x64.tar.xz
86
+ echo "NODE_JS = [os.path.expanduser('~/node-v${version}-linux-x64/bin/node')]" >> ~/emsdk/.emscripten
82
87
echo "JS_ENGINES = [NODE_JS]" >> ~/emsdk/.emscripten
83
88
echo "if os.path.exists(V8_ENGINE[0]): JS_ENGINES.append(V8_ENGINE)" >> ~/emsdk/.emscripten
84
89
cat ~/emsdk/.emscripten
85
- echo "export PATH=\"$HOME/node-v19.0.0-linux-x64/bin:\$PATH\"" >> $BASH_ENV
90
+ echo "export PATH=\"$HOME/node-v${version}-linux-x64/bin:\$PATH\"" >> $BASH_ENV
91
+ install-latest-node :
92
+ description : " install latest version of node"
93
+ steps :
94
+ - install-node-version :
95
+ node_version : " 19.0.0"
86
96
install-v8 :
87
97
description : " install v8 using jsvu"
88
98
steps :
@@ -511,11 +521,11 @@ jobs:
511
521
test_targets : " wasm64_v8"
512
522
- run-tests :
513
523
test_targets : " wasm64l"
514
- - setup -latest-node
524
+ - install -latest-node
515
525
- run-tests :
516
526
test_targets : " wasm64"
517
527
- upload-test-results
518
- test-latest- node :
528
+ test-node-compat :
519
529
# We don't use `bionic` here since its tool old to run recent node versions:
520
530
# `/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found`
521
531
executor : linux-python
@@ -526,7 +536,13 @@ jobs:
526
536
command : git submodule update --init
527
537
- pip-install
528
538
- build
529
- - setup-latest-node
539
+ - install-node-version :
540
+ node_version : " 10.19.0"
541
+ - run-tests :
542
+ # Run some basic tests to ensure JS compiler and other tools run
543
+ # on this older version.
544
+ test_targets : " core2.test_hello_world"
545
+ - install-latest-node
530
546
- run-tests :
531
547
# Run tests that on older versions of node would require flags, but
532
548
# those flags should not be injected on newer versions.
@@ -706,7 +722,7 @@ workflows:
706
722
- test-sockets-chrome :
707
723
requires :
708
724
- build-linux
709
- - test-latest- node
725
+ - test-node-compat
710
726
- test-windows
711
727
- test-mac :
712
728
# The mac tester also uses the libraries built on the linux builder to
0 commit comments