forked from pmodels/izem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (39 loc) · 954 Bytes
/
.travis.yml
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
language: c
matrix:
include:
- os: linux
compiler: gcc-6
- os: linux
compiler: clang-3.8
- os: osx
compiler: clang
- os: osx
compiler: gcc-6
allow_failures:
- os: linux
compiler: clang-3.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
packages:
- gcc-6
- clang-3.8
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
brew reinstall libtool;
brew install llvm --with-clang --with-compiler-rt --with-libcxx --with-lld;
brew test llvm;
brew link --force llvm;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$CC" == "gcc-6" ]]; then brew install gcc6; fi
script:
- ./autogen.sh
- mkdir build && cd build
- ../configure CFLAGS="-std=c11 -Wall"
- make V=1
- cd test && make check V=1
after_failure:
- cd $TRAVIS_BUILD_DIR/build && cat ./config.log