forked from SebWouters/CheMPS2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (34 loc) · 846 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
language: cpp
addons:
apt:
sources:
# Clang 5.0
- llvm-toolchain-trusty-5.0
# Newer GCC
- ubuntu-toolchain-r-test
packages:
- cmake
- cmake-data
- liblapack-dev
- libhdf5-serial-dev
- gcc-7
- g++-7
- clang-5.0
env:
global:
# should be limited to 4 on travis
- OMP_NUM_THREADS=4
# make cmake verbose
- VERBOSE=1
matrix:
# test three different compilers
- OUR_CXX='clang++-5.0' OUR_CC='clang-5.0' BUILD_TYPE='release'
- OUR_CXX='g++-7' OUR_CC='gcc-7' BUILD_TYPE='release'
install:
- mkdir build
- cd build
- cmake -DCMAKE_C_COMPILER=$OUR_CC -DCMAKE_CXX_COMPILER=$OUR_CXX -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
- make
script:
# we put a timeout of 90 minutes
- travis_wait 90 make test ARGS="-V"