@@ -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 a specific 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 :
@@ -508,11 +518,11 @@ jobs:
508
518
test_targets : " wasm64_v8"
509
519
- run-tests :
510
520
test_targets : " wasm64l"
511
- - setup -latest-node
521
+ - install -latest-node
512
522
- run-tests :
513
523
test_targets : " wasm64"
514
524
- upload-test-results
515
- test-latest- node :
525
+ test-node-compat :
516
526
# We don't use `bionic` here since its tool old to run recent node versions:
517
527
# `/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found`
518
528
executor : linux-python
@@ -523,10 +533,17 @@ jobs:
523
533
command : git submodule update --init
524
534
- pip-install
525
535
- build
526
- - setup-latest-node
536
+ # Run some basic tests with the minimum version of node that we currently
537
+ # support.
538
+ - install-node-version :
539
+ node_version : " 10.19.0"
540
+ - run-tests :
541
+ test_targets : " core2.test_hello_world"
542
+ # Run a few test with the most recent version of node
543
+ # In particular we have some tests that require node flags on older
544
+ # versions of node but not with the most recent version.
545
+ - install-latest-node
527
546
- run-tests :
528
- # Run tests that on older versions of node would require flags, but
529
- # those flags should not be injected on newer versions.
530
547
test_targets : " -v core2.test_pthread_create core2.test_i64_invoke_bigint core2.test_source_map"
531
548
- upload-test-results
532
549
test-other :
@@ -703,7 +720,7 @@ workflows:
703
720
- test-sockets-chrome :
704
721
requires :
705
722
- build-linux
706
- - test-latest- node
723
+ - test-node-compat
707
724
- test-windows
708
725
- test-mac :
709
726
# The mac tester also uses the libraries built on the linux builder to
0 commit comments