2017-08-23 23:24:50 +02:00
|
|
|
language: cpp
|
|
|
|
compiler:
|
|
|
|
- clang
|
|
|
|
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"
|
2017-08-23 23:24:50 +02:00
|
|
|
node_js: "latest"
|
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-10-18 04:17:06 +02:00
|
|
|
- \[ -z "$TRAVIS_COMMIT_RANGE" \] || git log $TRAVIS_COMMIT_RANGE --pretty=format:'%h' --no-merges | tail -1 | xargs npx core-validate-commit --no-validate-metadata
|
2018-08-20 16:05:28 +02:00
|
|
|
- name: "Test Suite"
|
2017-08-23 23:24:50 +02:00
|
|
|
install:
|
|
|
|
- ./configure
|
|
|
|
- make -j2 V=
|
|
|
|
script:
|
2018-08-20 16:05:28 +02:00
|
|
|
- make -j2 test
|
|
|
|
before_install:
|
|
|
|
- export CXX="ccache clang++ -Qunused-arguments"
|
|
|
|
- export CC="ccache clang -Qunused-arguments -Wno-unknown-warning-option"
|
|
|
|
- export JOBS=2
|