-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
105 lines (92 loc) · 2.69 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Travis-CI build scripts
language: cpp
os: linux
dist: bionic
jobs:
include:
# gcc 7.x, Debug
- env: CMAKE_CC="gcc-7" CMAKE_CXX="g++-7" BUILD_TYPE="Debug" MATRIX_EVAL="CC=gcc-7 && CXX=g++-7 && OMP_NUM_THREADS=4"
os: linux
addons:
apt:
packages:
- g++-7
- libgoogle-perftools-dev
- libomp-dev
- libopenmpi-dev
- openmpi-bin
# gcc 8.x, Debug
- env: CMAKE_CC="gcc-8" CMAKE_CXX="g++-8" BUILD_TYPE="Debug" MATRIX_EVAL="CC=gcc-8 && CXX=g++-8 && OMP_NUM_THREADS=4"
os: linux
addons:
apt:
packages:
- g++-8
- libgoogle-perftools-dev
- libomp-dev
- libopenmpi-dev
- openmpi-bin
# clang++-6, Debug
- env: CMAKE_CC="clang-8" CMAKE_CXX="clang++-8" BUILD_TYPE="Debug" MATRIX_EVAL="CC=clang-8 && CXX=clang++-8 && OMP_NUM_THREADS=4"
os: linux
addons:
apt:
packages:
- clang-8
- libgoogle-perftools-dev
- libomp-dev
- libopenmpi-dev
- openmpi-bin
# gcc 7.x, Release
- env: CMAKE_CC="gcc-7" CMAKE_CXX="g++-7" BUILD_TYPE="Release" MATRIX_EVAL="CC=gcc-7 && CXX=g++-7 && OMP_NUM_THREADS=4"
os: linux
addons:
apt:
packages:
- g++-7
- libgoogle-perftools-dev
- libomp-dev
- libopenmpi-dev
- openmpi-bin
# gcc 8.x, Release
- env: CMAKE_CC="gcc-8" CMAKE_CXX="g++-8" BUILD_TYPE="Release" MATRIX_EVAL="CC=gcc-8 && CXX=g++-8 && OMP_NUM_THREADS=4"
os: linux
addons:
apt:
packages:
- g++-8
- libgoogle-perftools-dev
- libomp-dev
- libopenmpi-dev
- openmpi-bin
# clang++-6, Release
- env: CMAKE_CC="clang-8" CMAKE_CXX="clang++-8" BUILD_TYPE="Release" MATRIX_EVAL="CC=clang-8 && CXX=clang++-8 && OMP_NUM_THREADS=4"
os: linux
addons:
apt:
packages:
- clang-8
- libgoogle-perftools-dev
- libomp-dev
- libopenmpi-dev
- openmpi-bin
before_install:
- eval "${MATRIX_EVAL}"
before_script:
# print out some version numbers
- $CMAKE_CXX --version
- cmake --version
# configure
- mkdir build; cd build
- cmake -DCMAKE_BUILD_TYPE="$BUILD_TYPE" -DCMAKE_C_COMPILER="$CMAKE_CC"
-DCMAKE_CXX_COMPILER="$CMAKE_CXX" ..
script:
- make
- ctest
-DCTEST_SITE:STRING="travis-$TRAVIS_REPO_SLUG"
-DCTEST_BUILD_NAME:STRING="$TRAVIS_OS_NAME-$CMAKE_CC-$BUILD_TYPE" -VV
notifications:
email:
recipients: [email protected]
on_success: change
on_failure: always