summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 32d4c29269da299db45562d33f8d208d39085503 (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
# sudo required as tests set cpu affinity
sudo: false

os:
  - linux
  - linux-ppc64le
  - osx

language:
  - c

compiler:
  - gcc
  - clang

matrix:
  exclude:
    - os: osx
      compiler: gcc
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - gcc-8
      - clang-6.0

script:
  - >
    if [[ $TRAVIS_OS_NAME == linux ]]; then
      case "$CC" in
        gcc) export CC=gcc-8 ;;
        clang) export CC=clang-6.0 ;;
      esac
    fi
  - ${CC} --version
  - export CFLAGS="-DITERATE=400 -DPAIRS_S=100 -DITERATIONS=24"
  - ./tools/ci-build.sh --cores=4
  - make check