summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 3acc2827975d635037edcf297893d1fd63dbacab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
language: cpp
compiler:
  - clang
sudo: false
cache: ccache
os: linux
matrix:
  include:
    - name: "Linter"
      node_js: "latest"
      env:
        - NODE=$(which node)
      script:
        - make lint
        # Lint the first commit in the PR.
        - git log HEAD ^$TRAVIS_BRANCH --pretty=format:'%h' --no-merges | tail -1 | xargs npx core-validate-commit --no-validate-metadata
    - name: "Test Suite"
      install:
        - ./configure
        - make -j2 V=
      script:
        - make -j2 test
      before_install:
        - export CXX="ccache clang++ -Qunused-arguments"
        - export CC="ccache clang -Qunused-arguments -Wno-unknown-warning-option"
        - export JOBS=2