summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2019-09-02 11:06:36 +0200
committerRich Trott <rtrott@gmail.com>2019-09-02 20:27:01 -0700
commitcd2a3f83278f84dd77137b0b81e6fd5fcec4d304 (patch)
treea23392e8725b6a9a654e335c5951eec8c580cb96 /.travis.yml
parent897587c0132da5b50f54409422b91a935739edb9 (diff)
downloadandroid-node-v8-cd2a3f83278f84dd77137b0b81e6fd5fcec4d304.tar.gz
android-node-v8-cd2a3f83278f84dd77137b0b81e6fd5fcec4d304.tar.bz2
android-node-v8-cd2a3f83278f84dd77137b0b81e6fd5fcec4d304.zip
Revert "build: add full Python 3 tests to Travis CI"
Reverted for breaking the Travis CI builds with the following error: $ cp ${PYTHON2_CACHE}/node out/Release/node cp: cannot stat '/home/travis/.ccache/py2.7.15/node': No such file or directory The command "cp ${PYTHON2_CACHE}/node out/Release/node" failed and exited with 1 during . This reverts commit c602b0a4e5df8de90299637aaef65c4cedae30ac. Refs: https://github.com/nodejs/node/pull/29360 PR-URL: https://github.com/nodejs/node/pull/29406 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Christian Clauss <cclauss@me.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml137
1 files changed, 45 insertions, 92 deletions
diff --git a/.travis.yml b/.travis.yml
index e25aba9f3d..88f0c6cdbd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,157 +8,110 @@ os: linux
language: cpp
env:
global:
- - PYTHON2_VERSION="2.7.15"
- - PYTHON3_VERSION="3.6.7" # "3.7.1" after #29326 is fixed
- - PYTHON2_CACHE=$HOME/.ccache/py${PYTHON2_VERSION}
- - PYTHON3_CACHE=$HOME/.ccache/py${PYTHON3_VERSION}
-cache:
- ccache: true
- directories:
- - ${PYTHON2_CACHE}
- - ${PYTHON3_CACHE}
+ - PYTHON_VERSION="2.7.15"
jobs:
include:
- stage: "Compile"
- name: "Compile V8 (py2)"
+ name: "Compile V8"
+ cache: ccache
addons:
apt:
- update: true
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
install: *ccache-setup-steps
script:
- - pyenv global ${PYTHON2_VERSION}
+ - pyenv global ${PYTHON_VERSION}
- ./configure
- make -j2 -C out V=1 v8
- - name: "Compile V8 (py3)"
+ - name: "Compile Node.js"
+ cache: ccache
addons:
apt:
- update: true
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
install: *ccache-setup-steps
script:
- - pyenv global ${PYTHON3_VERSION}
- # - ./configure # workaround pending #25878
- - python3 configure.py
- - make -j2 -C out V=1 v8
-
- - name: "Compile Node.js (py2)"
- addons:
- apt:
- update: true
- sources:
- - ubuntu-toolchain-r-test
- packages:
- - g++-6
- install: *ccache-setup-steps
- script:
- - pyenv global ${PYTHON2_VERSION}
+ - pyenv global ${PYTHON_VERSION}
- ./configure
- make -j2 V=1
- - cp out/Release/node ${PYTHON2_CACHE}
- - cp out/Release/cctest ${PYTHON2_CACHE}
-
- - name: "Compile Node.js (py3)"
- addons:
- apt:
- update: true
- sources:
- - ubuntu-toolchain-r-test
- packages:
- - g++-6
- install: *ccache-setup-steps
- script:
- - pyenv global ${PYTHON3_VERSION}
- # - ./configure # workaround pending #25878
- - python3 configure.py
- - make -j2 V=1
- - cp out/Release/node ${PYTHON3_CACHE}
- - cp out/Release/cctest ${PYTHON3_CACHE}
+ - cp out/Release/node /home/travis/.ccache
+ - cp out/Release/cctest /home/travis/.ccache
- stage: "Tests"
- name: "Test JS Suites (py2)"
- install:
- - mkdir -p out/Release
- - cp ${PYTHON2_CACHE}/node out/Release/node
- script:
- - pyenv global ${PYTHON2_VERSION}
- - python tools/test.py -j 2 -p dots --report --mode=release --flaky-tests=dontcare default
-
- - name: "Test JS Suites (py3)"
+ name: "Test JS Suites"
+ cache: ccache
install:
- mkdir -p out/Release
- - cp ${PYTHON3_CACHE}/node out/Release/node
+ - cp /home/travis/.ccache/node out/Release/node
script:
- - pyenv global ${PYTHON3_VERSION}
+ - pyenv global ${PYTHON_VERSION}
- python tools/test.py -j 2 -p dots --report --mode=release --flaky-tests=dontcare default
- - name: "Test C++ Suites (py2)"
+ - name: "Test C++ Suites"
+ cache: ccache
install:
- export CCACHE_NOSTATS=1
- export CCACHE_SLOPPINESS="file_macro,include_file_mtime,include_file_ctime,time_macros,file_stat_matches"
- export CC='ccache gcc'
- export CXX='ccache g++'
- mkdir -p out/Release
- - cp ${PYTHON2_CACHE}/node out/Release/node
+ - cp /home/travis/.ccache/node out/Release/node
- ln -fs out/Release/node node
- - cp ${PYTHON2_CACHE}/cctest out/Release/cctest
+ - cp /home/travis/.ccache/cctest out/Release/cctest
- touch config.gypi
script:
- - pyenv global ${PYTHON2_VERSION}
+ - 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
- - name: "Test C++ Suites (py3)"
- install:
- - export CCACHE_NOSTATS=1
- - export CCACHE_SLOPPINESS="file_macro,include_file_mtime,include_file_ctime,time_macros,file_stat_matches"
- - export CC='ccache gcc'
- - export CXX='ccache g++'
- - mkdir -p out/Release
- - cp ${PYTHON3_CACHE}/node out/Release/node
- - ln -fs out/Release/node node
- - cp ${PYTHON3_CACHE}/cctest out/Release/cctest
- - touch config.gypi
- script:
- - pyenv global ${PYTHON3_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
-
- - name: "Linter (py2)"
+ - name: "Linter"
language: node_js
node_js: "node"
install:
- - pyenv global ${PYTHON2_VERSION}
+ - pyenv global ${PYTHON_VERSION}
- make lint-py-build || true
script:
- NODE=$(which node) make lint lint-py
- - name: "Linter (py3)"
+ - name: "First commit message adheres to guidelines at <a href=\"https://goo.gl/p2fr5Q\">https://goo.gl/p2fr5Q</a>"
+ if: type = pull_request
+ language: node_js
+ node_js: "node"
+ script:
+ - if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
+ bash -x tools/lint-pr-commit-message.sh ${TRAVIS_PULL_REQUEST};
+ fi
+
+ - name: "Python 3 is EXPERIMENTAL (Py36)"
language: node_js
node_js: "node"
install:
- - pyenv global ${PYTHON3_VERSION}
- - make lint-py-build || true
+ - pyenv global 3.6.7
+ - python3.6 -m pip install --upgrade pip
+ - make lint-py-build
script:
- NODE=$(which node) make lint lint-py
+ - python3.6 ./configure.py
+ - NODE=$(which node) make test
- - name: "First commit message adheres to guidelines at <a href=\"https://goo.gl/p2fr5Q\">https://goo.gl/p2fr5Q</a>"
- if: type = pull_request
+ - name: "Python 3 is EXPERIMENTAL (Py37)"
language: node_js
node_js: "node"
+ install:
+ - pyenv global 3.7.1
+ - python3.7 -m pip install --upgrade pip
+ - make lint-py-build
script:
- - if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
- bash -x tools/lint-pr-commit-message.sh ${TRAVIS_PULL_REQUEST};
- fi
+ - NODE=$(which node) make lint lint-py
+ - python3.7 ./configure.py
+ - NODE=$(which node) make test
allow_failures:
- - name: "Test C++ Suites (py3)" # allow_failures pending #29246
+ - name: "Python 3 is EXPERIMENTAL (Py36)"
+ - name: "Python 3 is EXPERIMENTAL (Py37)"