-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.travis.yml
85 lines (75 loc) · 1.7 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
language: c
os:
- linux
branches:
only:
- unit-tests
git:
depth: 3
matrix:
include:
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
env:
- COMPILER=gcc-4.9
- CONFIG=Release
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
env:
- COMPILER=gcc-5
- CONFIG=Release
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-6
env:
- COMPILER=gcc-6
- CONFIG=Release
exclude:
- language: c
before_install:
- echo $PATH
- if [ $TRAVIS_OS_NAME == linux ]; then . scripts/ci/before_install.sh; fi
- echo $CC
- echo "${CC} --version"
- echo $COMPILER
- echo "${COMPILER} --version"
- which $CC
- which $COMPILER
- echo $PATH
install:
- mkdir build && cd build
- echo $CONFIG
- if [ "${CONFIG}" = "Debug" ]; then
cmake -DCMAKE_BUILD_TYPE=$CONFIG -DCMAKE_C_COMPILER=$COMPILER -DENABLE_TESTS=YES -DPERFORM_IO=NO -DIO_STATS=NO -DUSE_MPI=NO -DUSE_OPENMP=NO -DUSE_OPENACC=NO -DUSE_CUDA_KERNELS=NO ..
;
make
;
else
cmake -DCMAKE_BUILD_TYPE=$CONFIG -DCMAKE_C_COMPILER=$COMPILER -DENABLE_TESTS=YES -DPERFORM_IO=NO -DIO_STATS=NO -DUSE_MPI=NO -DUSE_OPENMP=YES -DUSE_OPENACC=NO -DUSE_CUDA_KERNELS=NO ..
;
make
;
fi
- cd -
before_script:
- export OMP_NUM_THREADS=4
script:
- . scripts/ci/run_tests.sh
after_success:
- echo "Yess"
after_failure:
- echo "Noooooooooooo <darth vader voice>"