summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 4ab46e5b1bd0c9446070d57a32e0c81a70ebf237 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
language: cpp
cache: ccache
os: linux
dist: xenial
stages:
  - check
  - test
matrix:
  include:
    - name: "First commit message adheres to guidelines at <a href=\"https://goo.gl/p2fr5Q\">https://goo.gl/p2fr5Q</a>"
      stage: check
      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
    - name: "Linter"
      stage: check
      language: node_js
      node_js: "node"
      script:
        - 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
    - name: "Test Suite"
      stage: test
      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:
        - PARALLEL_ARGS='--flaky-tests=skip' make -j1 test