Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta: travis: start slower jobs first #27205

Merged
merged 1 commit into from
Apr 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 21 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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