-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (54 loc) · 1.25 KB
/
.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
language: cpp
env:
- LLVM_VERSION=3.9 GCC_VERSION=4.8
- LLVM_VERSION=3.9 GCC_VERSION=4.9
- LLVM_VERSION=3.9 GCC_VERSION=5
- LLVM_VERSION=3.9 GCC_VERSION=6
sudo: false
addons:
apt:
sources:
- llvm-toolchain-precise-3.9
- ubuntu-toolchain-r-test
packages:
- ccache
- gcc-4.8
- g++-4.8
- gcc-4.9
- g++-4.9
- gcc-5
- g++-5
- gcc-6
- g++-6
- llvm-3.9
- llvm-3.9-dev
- clang-3.9
- libhdf5-serial-dev
- libsqlite3-dev
before_install:
- if [[ $CXX = "g++" ]]; then
export CXX="g++-${GCC_VERSION}";
export CC="gcc-${GCC_VERSION}";
else
export CXX="clang++-${LLVM_VERSION}";
export CC="clang-${LLVM_VERSION}";
fi
- if `type h5c++ > /dev/null 2>&1`; then
export HDF5_CXX="$CXX";
else
export H5CXX="$CXX";
export H5LIBS="-lhdf5 -lhdf5_cpp";
fi
- export LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
- export EXTRA_CXXFLAGS="-std=c++11"
- export BF_CLANG="clang-${LLVM_VERSION}"
- export BF_CLANGXX="clang++-${LLVM_VERSION}"
- export BF_GCC="gcc-${GCC_VERSION}"
- export BF_GXX="g++${GCC_VERSION}"
script:
- autoreconf -i &&
PATH="/usr/lib/ccache:$PATH" ./configure &&
make distcheck
compiler:
- clang
- gcc