build: pin Python version in Travis
Travis will be switching the default version of Python from 2.7 to 3.6. Our configuration and build scripts are not quite ready for Python 3 yet, so pin the version of Python to 2.7. PR-URL: https://github.com/nodejs/node/pull/27166 Refs: https://changelog.travis-ci.com/upcoming-python-default-version-update-96873 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
9dcc9b6a6b
commit
b468a1dfc3
@ -23,6 +23,7 @@ jobs:
|
|||||||
language: node_js
|
language: node_js
|
||||||
node_js: "node"
|
node_js: "node"
|
||||||
install:
|
install:
|
||||||
|
- pyenv global 2.7.15
|
||||||
- make lint-py-build || true
|
- make lint-py-build || true
|
||||||
script:
|
script:
|
||||||
- NODE=$(which node) make lint lint-py
|
- NODE=$(which node) make lint lint-py
|
||||||
@ -37,6 +38,7 @@ jobs:
|
|||||||
- g++-6
|
- g++-6
|
||||||
install: *ccache-setup-steps
|
install: *ccache-setup-steps
|
||||||
script:
|
script:
|
||||||
|
- pyenv global 2.7.15
|
||||||
- ./configure
|
- ./configure
|
||||||
- make -j2 -C out V=1 v8
|
- make -j2 -C out V=1 v8
|
||||||
|
|
||||||
@ -50,6 +52,7 @@ jobs:
|
|||||||
- g++-6
|
- g++-6
|
||||||
install: *ccache-setup-steps
|
install: *ccache-setup-steps
|
||||||
script:
|
script:
|
||||||
|
- pyenv global 2.7.15
|
||||||
- ./configure
|
- ./configure
|
||||||
- make -j2 V=1
|
- make -j2 V=1
|
||||||
- cp out/Release/node /home/travis/.ccache
|
- cp out/Release/node /home/travis/.ccache
|
||||||
@ -62,6 +65,7 @@ jobs:
|
|||||||
- mkdir -p out/Release
|
- mkdir -p out/Release
|
||||||
- cp /home/travis/.ccache/node out/Release/node
|
- cp /home/travis/.ccache/node out/Release/node
|
||||||
script:
|
script:
|
||||||
|
- pyenv global 2.7.15
|
||||||
- python tools/test.py -j 2 -p dots --report --mode=release --flaky-tests=dontcare default
|
- python tools/test.py -j 2 -p dots --report --mode=release --flaky-tests=dontcare default
|
||||||
|
|
||||||
- name: "Test C++ Suites"
|
- name: "Test C++ Suites"
|
||||||
@ -77,6 +81,7 @@ jobs:
|
|||||||
- cp /home/travis/.ccache/cctest out/Release/cctest
|
- cp /home/travis/.ccache/cctest out/Release/cctest
|
||||||
- touch config.gypi
|
- touch config.gypi
|
||||||
script:
|
script:
|
||||||
|
- pyenv global 2.7.15
|
||||||
- out/Release/cctest
|
- out/Release/cctest
|
||||||
- make -j1 V=1 test/addons/.buildstamp test/js-native-api/.buildstamp test/node-api/.buildstamp
|
- 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
|
- python tools/test.py -j 2 -p dots --report --mode=release --flaky-tests=dontcare addons js-native-api node-api
|
||||||
|
Loading…
x
Reference in New Issue
Block a user