summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorcclauss <cclauss@me.com>2019-07-15 11:47:10 +0200
committerRich Trott <rtrott@gmail.com>2019-07-17 14:36:22 -0700
commit19618bd6f54a6f813464fbd4bea7b024ec16677d (patch)
tree467e107d2845a93ff9993d613a7fad1d80d4c1b4 /.travis.yml
parentda69f56e7f317651949bc2305513a005ae837ed0 (diff)
downloadandroid-node-v8-19618bd6f54a6f813464fbd4bea7b024ec16677d.tar.gz
android-node-v8-19618bd6f54a6f813464fbd4bea7b024ec16677d.tar.bz2
android-node-v8-19618bd6f54a6f813464fbd4bea7b024ec16677d.zip
build: specify Python version once for all tests
Extracted from #28537 for shorter review cycle. This makes it easier to experiment with new versions of Python as they become available on the Travis CI platform. PR-URL: https://github.com/nodejs/node/pull/28694 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml14
1 files changed, 8 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index f6dc47d829..82a55c76e1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,8 +5,10 @@ x-ccache-setup-steps: &ccache-setup-steps
- export CXX='ccache g++-6'
os: linux
-dist: xenial
language: cpp
+env:
+ global:
+ - PYTHON_VERSION="2.7.15"
jobs:
include:
- stage: "Compile"
@@ -20,7 +22,7 @@ jobs:
- g++-6
install: *ccache-setup-steps
script:
- - pyenv global 2.7.15
+ - pyenv global ${PYTHON_VERSION}
- ./configure
- make -j2 -C out V=1 v8
@@ -34,7 +36,7 @@ jobs:
- g++-6
install: *ccache-setup-steps
script:
- - pyenv global 2.7.15
+ - pyenv global ${PYTHON_VERSION}
- ./configure
- make -j2 V=1
- cp out/Release/node /home/travis/.ccache
@@ -47,7 +49,7 @@ jobs:
- mkdir -p out/Release
- cp /home/travis/.ccache/node out/Release/node
script:
- - pyenv global 2.7.15
+ - pyenv global ${PYTHON_VERSION}
- python tools/test.py -j 2 -p dots --report --mode=release --flaky-tests=dontcare default
- name: "Test C++ Suites"
@@ -63,7 +65,7 @@ jobs:
- cp /home/travis/.ccache/cctest out/Release/cctest
- touch config.gypi
script:
- - pyenv global 2.7.15
+ - pyenv global ${PYTHON_VERSION}
- out/Release/cctest
- make -j1 V=1 test/addons/.buildstamp test/js-native-api/.buildstamp test/node-api/.buildstamp
- python tools/test.py -j 2 -p dots --report --mode=release --flaky-tests=dontcare addons js-native-api node-api
@@ -72,7 +74,7 @@ jobs:
language: node_js
node_js: "node"
install:
- - pyenv global 2.7.15
+ - pyenv global ${PYTHON_VERSION}
- make lint-py-build || true
script:
- NODE=$(which node) make lint lint-py