forked from LLNL/variorum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
273 lines (256 loc) · 6.19 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
sudo: true
language: c
compiler:
- gcc
env:
global:
- COMPILER_CC=gcc
- COMPILER_CXX=g++
- COMPILER_FC=gfortran
- ENABLE_WARNINGS=ON
include:
- os: linux
dist: trusty
jobs:
fast_finish: true
include:
- stage: "compile check"
env:
# we want to test both static and shared, w/ and w/o docs.
- BUILD_SHARED_LIBS=ON
BUILD_DOCS=ON
BUILD_TESTS=OFF
CMAKE_BUILD_TYPE=Debug
ENABLE_FORTRAN=OFF
VARIORUM_DEBUG=ON
VARIORUM_LOG=ON
VARIORUM_WITH_INTEL=ON
VARIORUM_WITH_IBM=OFF
VARIORUM_WITH_NVIDIA=OFF
VARIORUM_WITH_AMD=OFF
install:
# none
before_script:
- date
- sudo apt-get install python-sphinx
- sudo apt-get install doxygen
after_script:
- date
script:
- ./scripts/travis/build-and-install.sh
- env:
- BUILD_SHARED_LIBS=ON
BUILD_DOCS=ON
BUILD_TESTS=OFF
CMAKE_BUILD_TYPE=Debug
ENABLE_FORTRAN=OFF
VARIORUM_DEBUG=OFF
VARIORUM_LOG=OFF
VARIORUM_WITH_INTEL=ON
VARIORUM_WITH_IBM=OFF
VARIORUM_WITH_NVIDIA=OFF
VARIORUM_WITH_AMD=OFF
install:
# none
before_script:
- date
- sudo apt-get install python-sphinx
- sudo apt-get install doxygen
after_script:
- date
script:
- ./scripts/travis/build-and-install.sh
- env:
- BUILD_SHARED_LIBS=ON
BUILD_DOCS=OFF
BUILD_TESTS=OFF
CMAKE_BUILD_TYPE=Debug
ENABLE_FORTRAN=OFF
VARIORUM_DEBUG=ON
VARIORUM_LOG=ON
VARIORUM_WITH_INTEL=ON
VARIORUM_WITH_IBM=OFF
VARIORUM_WITH_NVIDIA=OFF
VARIORUM_WITH_AMD=OFF
install:
# none
before_script:
- date
after_script:
- date
script:
- ./scripts/travis/build-and-install.sh
- env:
- BUILD_SHARED_LIBS=ON
BUILD_DOCS=OFF
BUILD_TESTS=OFF
CMAKE_BUILD_TYPE=Debug
ENABLE_FORTRAN=OFF
VARIORUM_DEBUG=OFF
VARIORUM_LOG=OFF
VARIORUM_WITH_INTEL=ON
VARIORUM_WITH_IBM=OFF
VARIORUM_WITH_NVIDIA=OFF
VARIORUM_WITH_AMD=OFF
install:
# none
before_script:
- date
after_script:
- date
script:
- ./scripts/travis/build-and-install.sh
- env:
- BUILD_SHARED_LIBS=OFF
BUILD_DOCS=ON
BUILD_TESTS=OFF
CMAKE_BUILD_TYPE=Debug
ENABLE_FORTRAN=OFF
VARIORUM_DEBUG=OFF
VARIORUM_LOG=ON
VARIORUM_WITH_INTEL=ON
VARIORUM_WITH_IBM=OFF
VARIORUM_WITH_NVIDIA=OFF
VARIORUM_WITH_AMD=OFF
install:
# none
before_script:
- date
- sudo apt-get install python-sphinx
- sudo apt-get install doxygen
after_script:
- date
script:
- ./scripts/travis/build-and-install.sh
- env:
- BUILD_SHARED_LIBS=OFF
BUILD_DOCS=ON
BUILD_TESTS=OFF
CMAKE_BUILD_TYPE=Debug
ENABLE_FORTRAN=OFF
VARIORUM_DEBUG=ON
VARIORUM_LOG=OFF
VARIORUM_WITH_INTEL=ON
VARIORUM_WITH_IBM=OFF
VARIORUM_WITH_NVIDIA=OFF
VARIORUM_WITH_AMD=OFF
install:
# none
before_script:
- date
- sudo apt-get install python-sphinx
- sudo apt-get install doxygen
after_script:
- date
script:
- ./scripts/travis/build-and-install.sh
- env:
- BUILD_SHARED_LIBS=OFF
BUILD_DOCS=OFF
BUILD_TESTS=OFF
CMAKE_BUILD_TYPE=Debug
ENABLE_FORTRAN=OFF
VARIORUM_DEBUG=ON
VARIORUM_LOG=ON
VARIORUM_WITH_INTEL=ON
VARIORUM_WITH_IBM=OFF
VARIORUM_WITH_NVIDIA=OFF
VARIORUM_WITH_AMD=OFF
install:
# none
before_script:
- date
after_script:
- date
script:
- ./scripts/travis/build-and-install.sh
- env:
- BUILD_SHARED_LIBS=OFF
BUILD_DOCS=OFF
BUILD_TESTS=OFF
CMAKE_BUILD_TYPE=Debug
ENABLE_FORTRAN=OFF
VARIORUM_DEBUG=OFF
VARIORUM_LOG=OFF
VARIORUM_WITH_INTEL=ON
VARIORUM_WITH_IBM=OFF
VARIORUM_WITH_NVIDIA=OFF
VARIORUM_WITH_AMD=OFF
install:
# none
before_script:
- date
after_script:
- date
script:
- ./scripts/travis/build-and-install.sh
- env:
- BUILD_SHARED_LIBS=ON
BUILD_DOCS=ON
BUILD_TESTS=ON
CMAKE_BUILD_TYPE=Release
ENABLE_FORTRAN=OFF
VARIORUM_DEBUG=OFF
VARIORUM_LOG=ON
VARIORUM_WITH_INTEL=ON
VARIORUM_WITH_IBM=OFF
VARIORUM_WITH_NVIDIA=OFF
VARIORUM_WITH_AMD=OFF
install:
# none
before_script:
- date
after_script:
- date
script:
- ./scripts/travis/build-and-install.sh
- stage: "verify install with example"
env:
# we want to test both static and shared, w/ and w/o docs.
- BUILD_SHARED_LIBS=ON
BUILD_DOCS=OFF
BUILD_TESTS=OFF
CMAKE_BUILD_TYPE=Release
VARIORUM_DEBUG=OFF
VARIORUM_LOG=OFF
ENABLE_FORTRAN=ON
VARIORUM_WITH_INTEL=ON
VARIORUM_WITH_IBM=OFF
VARIORUM_WITH_NVIDIA=OFF
VARIORUM_WITH_AMD=OFF
install:
# none
before_script:
- date
- sudo apt-get install gfortran
- sudo apt-get install linux-headers-`uname -r`
after_script:
- date
script:
- ./scripts/travis/build-and-install.sh
- ./scripts/travis/load-msr-safe.sh
- ./scripts/travis/test-install.sh
- stage: "c/cpp/h style check"
script:
- wget https://sourceforge.net/projects/astyle/files/astyle/astyle%203.1/astyle_3.1_linux.tar.gz
- tar -xf astyle_3.1_linux.tar.gz
- cd astyle/build/gcc && make -j
- export PATH="${PWD}/bin:${PATH}"
- cd -
- echo -e "PWD:" ${PWD}
- ./scripts/astyle-format.sh || travis_terminate 1
- stage: "python style check"
install:
- pip install --upgrade -r ./src/utilities/requirements.txt
- pip install --upgrade black
language: python
python: '3.7'
script:
- black --diff --check ./src/utilities
- flake8 ./src/utilities
notifications:
email:
recipients:
on_success: always
on_failure: always