-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
177 lines (144 loc) · 3.42 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
# Some advice on this configuration was taken from:
# https://genbattle.bitbucket.io/blog/2016/01/17/c++-travis-ci/?
# TODO specify exact versions on which it has to work
# Generic language, because we prefer to handle C++ configuration ourselves
language: generic
dist: trusty
addons:
apt:
sources: &sources
- ubuntu-toolchain-r-test
packages: &deps
- libboost-all-dev
- libhdf5-serial-dev
- libtbb-dev
- libtbb2
gcc_addons: &gcc_addons
apt:
sources:
- *sources
packages:
- *deps
- gcc-5
- g++-5
clang_addons: &clang_addons
apt:
sources:
- *sources
packages:
- *deps
- clang-3.8
- libc++-dev
- libiomp-dev
matrix:
include:
# Code quality ....................
- stage: Code quality
language: node_js
env: quality_dir=src/main
node_js:
- "node"
before_install:
before_script:
- npm install -g jscpd
script:
- travis/code_quality.sh
addons:
apt:
- language: node_js
env: quality_dir=src/test
node_js:
- "node"
before_install:
before_script:
- npm install -g jscpd
script:
- travis/code_quality.sh
addons:
apt:
# Unit tests ......................
- stage: Unit tests
addons: *gcc_addons
env:
- test=unit
- unipar=dummy
- compiler=gcc
- addons: *clang_addons
env:
- test=unit
- unipar=dummy
- compiler=clang
- addons: *gcc_addons
env:
- test=unit
- unipar=TBB
- compiler=gcc
- addons: *clang_addons
env:
- test=unit
- unipar=TBB
- compiler=clang
- addons: *gcc_addons
env:
- test=unit
- unipar=OpenMP
- compiler=gcc
- addons: *clang_addons
env:
- test=unit
- unipar=OpenMP
- compiler=clang
# Scenario tests ..................
- stage: Scenario tests
addons: *gcc_addons
env:
- test=scenarios
- unipar=dummy
- compiler=gcc
- addons: *clang_addons
env:
- test=scenarios
- unipar=dummy
- compiler=clang
- addons: *gcc_addons
env:
- test=scenarios
- unipar=TBB
- compiler=gcc
- addons: *clang_addons
env:
- test=scenarios
- unipar=TBB
- compiler=clang
- addons: *gcc_addons
env:
- test=scenarios
- unipar=OpenMP
- compiler=gcc
- addons: *clang_addons
env:
- test=scenarios
- unipar=OpenMP
- compiler=clang
# macOS ...........................
#- os: osx
#osx_image: xcode8.3
branches:
except:
- Visualization # No tests written for GUI's, so don't bother
before_install:
- . ./travis/before_install.sh # thanks https://github.com/travis-ci/travis-ci/issues/1313
- PARALLEL_MAKE=2 make install
script:
- travis_wait ./travis/script.sh
# Cache HDF5 build if needed
#cache:
#directories:
#- src/hdf5local/
notifications:
slack:
rooms:
- apollo-stride:u6J7UHJdtlvVNtnUjyRndtgh#repo
on_failure: always
on_success: change
email: false