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

build,meta: tweak Travis config #26969

Merged
merged 1 commit into from
Apr 2, 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
56 changes: 36 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,57 @@
language: cpp
cache: ccache
os: linux
dist: xenial
stages:
- check
- test
matrix:
jobs:
include:
- name: "First commit message adheres to guidelines at <a href=\"https://goo.gl/p2fr5Q\">https://goo.gl/p2fr5Q</a>"
stage: check
- 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"
stage: check
language: node_js
node_js: "node"
install:
- make lint-py-build || true
refack marked this conversation as resolved.
Show resolved Hide resolved
script:
- NODE=$(which node) make lint
- name: "Prepare ccache"
stage: check
- NODE=$(which node) make lint-ci
refack marked this conversation as resolved.
Show resolved Hide resolved
refack marked this conversation as resolved.
Show resolved Hide resolved

- name: "Compile V8"
language: cpp
cache: ccache
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
install:
- export CC='ccache gcc-6' CXX='ccache g++-6' JOBS=2
- ./configure
- make -j2 V=
- CC='ccache gcc-6' CXX='ccache g++-6' ./configure
script:
- CC='ccache gcc-6' CXX='ccache g++-6' make -j2 -C out V=1 v8

- name: "Compile Node.js"
language: cpp
cache: ccache
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
install:
- CC='ccache gcc-6' CXX='ccache g++-6' ./configure
script:
- true
- name: "Test Suite"
stage: test
- CC='ccache gcc-6' CXX='ccache g++-6' make -j2 V=1

- stage: "Tests"
name: "Test Suite"
language: cpp
cache: ccache
addons:
apt:
sources:
Expand All @@ -47,6 +61,8 @@ matrix:
install:
- export CC='ccache gcc-6' CXX='ccache g++-6' JOBS=2
- ./configure
- make -j2 V=
# We already have a compile log in the above job
- make -j2 > /dev/null
- make -j1 build-addons build-js-native-api-tests build-node-api-tests > /dev/null
script:
- CI_JS_SUITES='--flaky-tests=skip default' make -j1 test
- JOBS=2 FLAKY_TESTS=skip make -s -j1 V= test-ci | grep -F -e "---" -e "..." -v