build,meta: tweak Travis config
* Add `lint-py-build` to get `lint-ci` to lint python * Add compile V8 job * Make compilation verbose * Test with `test-ci` PR-URL: https://github.com/nodejs/node/pull/26969 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
This commit is contained in:
parent
8afab1a5a7
commit
7bf517158e
72
.travis.yml
72
.travis.yml
@ -1,14 +1,9 @@
|
|||||||
language: cpp
|
|
||||||
cache: ccache
|
|
||||||
os: linux
|
os: linux
|
||||||
dist: xenial
|
dist: xenial
|
||||||
stages:
|
jobs:
|
||||||
- check
|
|
||||||
- test
|
|
||||||
matrix:
|
|
||||||
include:
|
include:
|
||||||
- name: "First commit message adheres to guidelines at <a href=\"https://goo.gl/p2fr5Q\">https://goo.gl/p2fr5Q</a>"
|
- stage: "Lint and Compile"
|
||||||
stage: check
|
name: "First commit message adheres to guidelines at <a href=\"https://goo.gl/p2fr5Q\">https://goo.gl/p2fr5Q</a>"
|
||||||
if: type = pull_request
|
if: type = pull_request
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js: "node"
|
node_js: "node"
|
||||||
@ -16,14 +11,47 @@ matrix:
|
|||||||
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
|
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
|
||||||
bash -x tools/lint-pr-commit-message.sh ${TRAVIS_PULL_REQUEST};
|
bash -x tools/lint-pr-commit-message.sh ${TRAVIS_PULL_REQUEST};
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: "Linter"
|
- name: "Linter"
|
||||||
stage: check
|
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js: "node"
|
node_js: "node"
|
||||||
|
install:
|
||||||
|
- make lint-py-build || true
|
||||||
script:
|
script:
|
||||||
- NODE=$(which node) make lint
|
- NODE=$(which node) make lint-ci
|
||||||
- name: "Prepare ccache"
|
|
||||||
stage: check
|
- name: "Compile V8"
|
||||||
|
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:
|
||||||
|
- 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:
|
||||||
|
- CC='ccache gcc-6' CXX='ccache g++-6' make -j2 V=1
|
||||||
|
|
||||||
|
- stage: "Tests"
|
||||||
|
name: "Test Suite"
|
||||||
|
language: cpp
|
||||||
|
cache: ccache
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
@ -33,20 +61,8 @@ matrix:
|
|||||||
install:
|
install:
|
||||||
- export CC='ccache gcc-6' CXX='ccache g++-6' JOBS=2
|
- export CC='ccache gcc-6' CXX='ccache g++-6' JOBS=2
|
||||||
- ./configure
|
- ./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:
|
script:
|
||||||
- true
|
- JOBS=2 FLAKY_TESTS=skip make -s -j1 V= test-ci | grep -F -e "---" -e "..." -v
|
||||||
- name: "Test Suite"
|
|
||||||
stage: test
|
|
||||||
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=
|
|
||||||
script:
|
|
||||||
- CI_JS_SUITES='--flaky-tests=skip default' make -j1 test
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user