diff options
author | Refael Ackermann <refack@gmail.com> | 2019-04-12 19:34:08 -0400 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2019-04-15 18:39:46 -0400 |
commit | f3b5cc0807dbc35bb3742e0ab50a2d5f31704ce9 (patch) | |
tree | 7bd2d8f36893ed9e2281eb50a41f8f7e800e5547 /.travis.yml | |
parent | a38e9c438ae872da37999c39d974facd4d524ea2 (diff) | |
download | android-node-v8-f3b5cc0807dbc35bb3742e0ab50a2d5f31704ce9.tar.gz android-node-v8-f3b5cc0807dbc35bb3742e0ab50a2d5f31704ce9.tar.bz2 android-node-v8-f3b5cc0807dbc35bb3742e0ab50a2d5f31704ce9.zip |
meta: travis: run compilation jobs first
even though jobs can run in parallel they start in declaration order
* this patch makes "compiles >> no lint" in terms of precedence
PR-URL: https://github.com/nodejs/node/pull/27205
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/.travis.yml b/.travis.yml index 7a496a45ab..a262ed7f9f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,26 +9,8 @@ dist: xenial language: cpp jobs: include: - - stage: "Lint and Compile" - 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: "Linter" - language: node_js - node_js: "node" - install: - - pyenv global 2.7.15 - - make lint-py-build || true - script: - - NODE=$(which node) make lint lint-py - - - name: "Compile V8" + - stage: "Compile" + name: "Compile V8" cache: ccache addons: apt: @@ -58,6 +40,7 @@ jobs: - cp out/Release/node /home/travis/.ccache - cp out/Release/cctest /home/travis/.ccache + - pyenv global 2.7.15 - stage: "Tests" name: "Test JS Suites" cache: ccache @@ -85,3 +68,21 @@ jobs: - 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" + language: node_js + node_js: "node" + install: + - pyenv global 2.7.15 + - make lint-py-build || true + script: + - NODE=$(which node) make lint lint-py + + - 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 |