Skip to content

Commit b468a1d

Browse files
richardlauBridgeAR
authored andcommitted
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: #27166 Refs: https://changelog.travis-ci.com/upcoming-python-default-version-update-96873 Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 9dcc9b6 commit b468a1d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
language: node_js
2424
node_js: "node"
2525
install:
26+
- pyenv global 2.7.15
2627
- make lint-py-build || true
2728
script:
2829
- NODE=$(which node) make lint lint-py
@@ -37,6 +38,7 @@ jobs:
3738
- g++-6
3839
install: *ccache-setup-steps
3940
script:
41+
- pyenv global 2.7.15
4042
- ./configure
4143
- make -j2 -C out V=1 v8
4244

@@ -50,6 +52,7 @@ jobs:
5052
- g++-6
5153
install: *ccache-setup-steps
5254
script:
55+
- pyenv global 2.7.15
5356
- ./configure
5457
- make -j2 V=1
5558
- cp out/Release/node /home/travis/.ccache
@@ -62,6 +65,7 @@ jobs:
6265
- mkdir -p out/Release
6366
- cp /home/travis/.ccache/node out/Release/node
6467
script:
68+
- pyenv global 2.7.15
6569
- python tools/test.py -j 2 -p dots --report --mode=release --flaky-tests=dontcare default
6670

6771
- name: "Test C++ Suites"
@@ -77,6 +81,7 @@ jobs:
7781
- cp /home/travis/.ccache/cctest out/Release/cctest
7882
- touch config.gypi
7983
script:
84+
- pyenv global 2.7.15
8085
- out/Release/cctest
8186
- make -j1 V=1 test/addons/.buildstamp test/js-native-api/.buildstamp test/node-api/.buildstamp
8287
- python tools/test.py -j 2 -p dots --report --mode=release --flaky-tests=dontcare addons js-native-api node-api

0 commit comments

Comments
 (0)