2018-08-20 17:05:28 +03:00
|
|
|
os: linux
|
2019-03-17 17:59:14 +03:00
|
|
|
dist: xenial
|
2019-03-29 00:10:06 +03:00
|
|
|
jobs:
|
2017-08-24 00:24:50 +03:00
|
|
|
include:
|
2019-03-29 00:10:06 +03:00
|
|
|
- stage: "Lint and Compile"
|
|
|
|
name: "First commit message adheres to guidelines at <a href=\"https://goo.gl/p2fr5Q\">https://goo.gl/p2fr5Q</a>"
|
2018-11-08 21:27:39 +03:00
|
|
|
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
|
2019-03-29 00:10:06 +03:00
|
|
|
|
2018-08-20 17:05:28 +03:00
|
|
|
- name: "Linter"
|
2018-11-06 20:57:04 +03:00
|
|
|
language: node_js
|
|
|
|
node_js: "node"
|
2019-03-29 00:10:06 +03:00
|
|
|
install:
|
|
|
|
- make lint-py-build || true
|
2017-08-24 00:24:50 +03:00
|
|
|
script:
|
2019-03-29 00:10:06 +03:00
|
|
|
- NODE=$(which node) make lint-ci
|
|
|
|
|
|
|
|
- name: "Compile V8"
|
|
|
|
language: cpp
|
|
|
|
cache: ccache
|
2019-03-29 19:42:11 +03:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-6
|
|
|
|
install:
|
2019-03-29 00:10:06 +03:00
|
|
|
- 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
|
2019-03-29 19:42:11 +03:00
|
|
|
script:
|
2019-03-29 00:10:06 +03:00
|
|
|
- CC='ccache gcc-6' CXX='ccache g++-6' make -j2 V=1
|
|
|
|
|
|
|
|
- stage: "Tests"
|
|
|
|
name: "Test Suite"
|
|
|
|
language: cpp
|
|
|
|
cache: ccache
|
2018-10-20 05:14:35 +03:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
2019-03-17 17:59:14 +03:00
|
|
|
- g++-6
|
2017-08-24 00:24:50 +03:00
|
|
|
install:
|
2019-03-17 17:59:14 +03:00
|
|
|
- export CC='ccache gcc-6' CXX='ccache g++-6' JOBS=2
|
2017-08-24 00:24:50 +03:00
|
|
|
- ./configure
|
2019-03-29 00:10:06 +03:00
|
|
|
# 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
|
2017-08-24 00:24:50 +03:00
|
|
|
script:
|
2019-03-29 00:10:06 +03:00
|
|
|
- JOBS=2 FLAKY_TESTS=skip make -s -j1 V= test-ci | grep -F -e "---" -e "..." -v
|