2017-08-23 23:24:50 +02:00
|
|
|
language: cpp
|
|
|
|
sudo: false
|
|
|
|
cache: ccache
|
2018-08-20 16:05:28 +02:00
|
|
|
os: linux
|
2017-08-23 23:24:50 +02:00
|
|
|
matrix:
|
|
|
|
include:
|
2018-08-20 16:05:28 +02:00
|
|
|
- name: "Linter"
|
2018-11-06 18:57:04 +01:00
|
|
|
language: node_js
|
|
|
|
node_js: "node"
|
2018-09-21 08:33:34 +02:00
|
|
|
env:
|
2018-08-20 16:05:28 +02:00
|
|
|
- NODE=$(which node)
|
2017-08-23 23:24:50 +02:00
|
|
|
script:
|
2018-08-20 16:05:28 +02:00
|
|
|
- make lint
|
2018-08-22 04:15:14 +02:00
|
|
|
# Lint the first commit in the PR.
|
2018-11-05 01:50:21 +01:00
|
|
|
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
|
2018-10-18 23:16:24 +02:00
|
|
|
bash tools/lint-pr-commit-message.sh ${TRAVIS_PULL_REQUEST} || true;
|
2018-11-05 01:50:21 +01:00
|
|
|
fi
|
2018-08-20 16:05:28 +02:00
|
|
|
- name: "Test Suite"
|
2018-10-20 04:14:35 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-4.9
|
2017-08-23 23:24:50 +02:00
|
|
|
install:
|
2018-10-20 04:14:35 +02:00
|
|
|
- export CC='ccache gcc-4.9' CXX='ccache g++-4.9' JOBS=2
|
2017-08-23 23:24:50 +02:00
|
|
|
- ./configure
|
|
|
|
- make -j2 V=
|
|
|
|
script:
|
2018-10-20 04:14:35 +02:00
|
|
|
- PARALLEL_ARGS='--flaky-tests=skip' make -j1 test
|