2019-04-10 22:29:29 +02:00
|
|
|
x-ccache-setup-steps: &ccache-setup-steps
|
|
|
|
- export CCACHE_NOSTATS=1
|
|
|
|
- export CCACHE_SLOPPINESS="file_macro,include_file_mtime,include_file_ctime,time_macros,file_stat_matches"
|
|
|
|
- export CC='ccache gcc-6'
|
|
|
|
- export CXX='ccache g++-6'
|
|
|
|
|
2018-08-20 16:05:28 +02:00
|
|
|
os: linux
|
2019-03-17 15:59:14 +01:00
|
|
|
dist: xenial
|
2019-04-10 22:29:29 +02:00
|
|
|
language: cpp
|
2019-03-28 22:10:06 +01:00
|
|
|
jobs:
|
2017-08-23 23:24:50 +02:00
|
|
|
include:
|
2019-03-28 22:10:06 +01: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 19:27:39 +01: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-28 22:10:06 +01:00
|
|
|
|
2018-08-20 16:05:28 +02:00
|
|
|
- name: "Linter"
|
2018-11-06 18:57:04 +01:00
|
|
|
language: node_js
|
|
|
|
node_js: "node"
|
2019-03-28 22:10:06 +01:00
|
|
|
install:
|
|
|
|
- make lint-py-build || true
|
2017-08-23 23:24:50 +02:00
|
|
|
script:
|
2019-04-03 00:25:28 +02:00
|
|
|
- NODE=$(which node) make lint lint-py
|
2019-03-28 22:10:06 +01:00
|
|
|
|
|
|
|
- name: "Compile V8"
|
|
|
|
cache: ccache
|
2019-03-29 17:42:11 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-6
|
2019-04-10 22:29:29 +02:00
|
|
|
install: *ccache-setup-steps
|
2019-03-28 22:10:06 +01:00
|
|
|
script:
|
2019-04-10 22:29:29 +02:00
|
|
|
- ./configure
|
|
|
|
- make -j2 -C out V=1 v8
|
2019-03-28 22:10:06 +01:00
|
|
|
|
|
|
|
- name: "Compile Node.js"
|
|
|
|
cache: ccache
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-6
|
2019-04-10 22:29:29 +02:00
|
|
|
install: *ccache-setup-steps
|
2019-03-29 17:42:11 +01:00
|
|
|
script:
|
2019-04-10 22:29:29 +02:00
|
|
|
- ./configure
|
|
|
|
- make -j2 V=1
|
|
|
|
- cp out/Release/node /home/travis/.ccache
|
|
|
|
- cp out/Release/cctest /home/travis/.ccache
|
2019-03-28 22:10:06 +01:00
|
|
|
|
|
|
|
- stage: "Tests"
|
2019-04-10 22:29:29 +02:00
|
|
|
name: "Test JS Suites"
|
2019-03-28 22:10:06 +01:00
|
|
|
cache: ccache
|
2017-08-23 23:24:50 +02:00
|
|
|
install:
|
2019-04-10 22:29:29 +02:00
|
|
|
- mkdir -p out/Release
|
|
|
|
- cp /home/travis/.ccache/node out/Release/node
|
|
|
|
script:
|
|
|
|
- python tools/test.py -j 2 -p dots --report --mode=release --flaky-tests=dontcare default
|
|
|
|
|
|
|
|
- name: "Test C++ Suites"
|
|
|
|
cache: ccache
|
|
|
|
install:
|
|
|
|
- export CCACHE_NOSTATS=1
|
|
|
|
- export CCACHE_SLOPPINESS="file_macro,include_file_mtime,include_file_ctime,time_macros,file_stat_matches"
|
|
|
|
- export CC='ccache gcc'
|
|
|
|
- export CXX='ccache g++'
|
|
|
|
- mkdir -p out/Release
|
|
|
|
- cp /home/travis/.ccache/node out/Release/node
|
|
|
|
- ln -fs out/Release/node node
|
|
|
|
- cp /home/travis/.ccache/cctest out/Release/cctest
|
|
|
|
- touch config.gypi
|
2017-08-23 23:24:50 +02:00
|
|
|
script:
|
2019-04-10 22:29:29 +02:00
|
|
|
- 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
|