2017-08-24 05:24:50 +08:00
|
|
|
language: cpp
|
|
|
|
cache: ccache
|
2018-08-20 22:05:28 +08:00
|
|
|
os: linux
|
2019-03-17 22:59:14 +08:00
|
|
|
dist: xenial
|
2019-03-30 00:42:11 +08:00
|
|
|
stages:
|
|
|
|
- check
|
|
|
|
- test
|
2017-08-24 05:24:50 +08:00
|
|
|
matrix:
|
|
|
|
include:
|
2018-11-09 02:27:39 +08:00
|
|
|
- name: "First commit message adheres to guidelines at <a href=\"https://goo.gl/p2fr5Q\">https://goo.gl/p2fr5Q</a>"
|
2019-03-30 00:42:11 +08:00
|
|
|
stage: check
|
2018-11-09 02:27:39 +08: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
|
2018-08-20 22:05:28 +08:00
|
|
|
- name: "Linter"
|
2019-03-30 00:42:11 +08:00
|
|
|
stage: check
|
2018-11-07 01:57:04 +08:00
|
|
|
language: node_js
|
|
|
|
node_js: "node"
|
2017-08-24 05:24:50 +08:00
|
|
|
script:
|
2019-03-30 00:42:11 +08:00
|
|
|
- NODE=$(which node) make lint
|
|
|
|
- name: "Prepare ccache"
|
|
|
|
stage: check
|
|
|
|
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:
|
|
|
|
- true
|
2018-08-20 22:05:28 +08:00
|
|
|
- name: "Test Suite"
|
2019-03-30 00:42:11 +08:00
|
|
|
stage: test
|
2018-10-20 10:14:35 +08:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
2019-03-17 22:59:14 +08:00
|
|
|
- g++-6
|
2017-08-24 05:24:50 +08:00
|
|
|
install:
|
2019-03-17 22:59:14 +08:00
|
|
|
- export CC='ccache gcc-6' CXX='ccache g++-6' JOBS=2
|
2017-08-24 05:24:50 +08:00
|
|
|
- ./configure
|
|
|
|
- make -j2 V=
|
|
|
|
script:
|
2019-03-29 05:07:19 +08:00
|
|
|
- CI_JS_SUITES='--flaky-tests=skip default' make -j1 test
|