-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitlab-ci.yml
233 lines (222 loc) · 5.64 KB
/
.gitlab-ci.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
variables:
GIT_SUBMODULE_STRATEGY: none
stages:
- analysis
- build
- test
- coverage
- deploy
before_script:
- hostname
- whoami
# - pwd
analysis-headers:
image: ubuntu:20.04
stage: analysis
artifacts:
name: analysis-headers
when: always
paths:
- streampu.hpp
tags:
- x86_64
- linux
- docker
script:
- ./scripts/generate_streampu_header.sh streampu.hpp
- diff streampu.hpp include/streampu.hpp
analysis-clang-format:
image: ubuntu:22.04
stage: analysis
tags:
- x86_64
- linux
- docker
script:
- apt-get update
- apt-get -y install clang-format
- mkdir original_code
- cp -r include original_code
- cp -r src original_code
- cp -r tests original_code
- cp -r signal_tracer original_code
- ./scripts/apply_clang_format.sh
- mkdir new_code
- cp -r include new_code
- cp -r src new_code
- cp -r tests new_code
- cp -r signal_tracer new_code
- diff -r new_code original_code
build-linux-gcc-x64-avx2:
image: registry.gitlab.com/aff3ct/aff3ct/x86_64_ubuntu_gcc:v9.3.0
stage: build
variables:
GIT_SUBMODULE_STRATEGY: recursive
except:
- schedules
needs:
- job: analysis-headers
artifacts: false
tags:
- x86_64
- linux
- docker
artifacts:
name: build-linux-gcc-x64-avx2
paths:
- build_linux_gcc_x64_avx2
script:
- export CXX="g++"
- export CFLAGS="-Wall -funroll-loops -m64 -mavx2 -mfma"
- export LFLAGS="-static -static-libgcc -static-libstdc++ -Wl,--whole-archive -lrt -lpthread -Wl,--no-whole-archive"
- export GIT_TAG="v0.0.0"
- export CMAKE_OPT="-DSPU_TESTS=ON -DSPU_COMPILE_STATIC_LIB=ON -DSPU_COMPILE_SHARED_LIB=ON -DSPU_STACKTRACE=OFF -DSPU_OVERRIDE_VERSION=$GIT_TAG"
- export NAME="build_linux_gcc_x64_avx2"
- source ./ci/tools/threads.sh
- ./ci/build-linux-macos.sh
build-linux-gcc-coverage-regression:
image: registry.gitlab.com/aff3ct/aff3ct/x86_64_ubuntu_coverage
stage: build
variables:
GIT_SUBMODULE_STRATEGY: recursive
needs:
- job: analysis-headers
artifacts: false
tags:
- x86_64
- linux
- docker
artifacts:
name: regression-code-coverage-files
when: always
paths:
- build/
- code_coverage_files/
script:
- export CXX="g++"
- export CFLAGS="-Wall -funroll-loops -msse4.2 --coverage"
- export LFLAGS="--coverage"
- export GIT_TAG="v0.0.0"
- export CMAKE_OPT="-DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS_DEBUG=-O0 -DSPU_TESTS=ON -DSPU_COMPILE_STATIC_LIB=ON -DSPU_COMPILE_SHARED_LIB=ON -DSPU_LINK_HWLOC=ON -DSPU_OVERRIDE_VERSION=$GIT_TAG"
- source ./ci/tools/threads.sh
- ./ci/build-linux-macos.sh
- ./ci/test-coverage-regression.sh
- rm -rf build/bin
- rm -rf build/lib
build-linux-clang:
image: registry.gitlab.com/aff3ct/aff3ct/x86_64_ubuntu_clang:v10.0.0
stage: build
variables:
GIT_SUBMODULE_STRATEGY: recursive
except:
- schedules
needs:
- job: analysis-headers
artifacts: false
tags:
- x86_64
- linux
- docker
artifacts:
name: build-linux-clang
paths:
- build_linux_clang
script:
- export CXX="clang++"
- export CFLAGS="-Wall -Wno-overloaded-virtual -funroll-loops"
- export GIT_TAG="v0.0.0"
- export CMAKE_OPT="-DSPU_TESTS=ON -DSPU_COMPILE_STATIC_LIB=ON -DSPU_COMPILE_SHARED_LIB=ON -DSPU_OVERRIDE_VERSION=$GIT_TAG"
- export NAME="build_linux_clang"
- source ./ci/tools/threads.sh
- ./ci/build-linux-macos.sh
build-linux-icpc:
image: intel/oneapi-hpckit:2022.2-devel-ubuntu20.04
stage: build
variables:
GIT_SUBMODULE_STRATEGY: recursive
except:
- schedules
needs:
- job: analysis-headers
artifacts: false
tags:
- x86_64
- linux
- docker
artifacts:
name: build-linux-icpc
paths:
- build_linux_icpc
script:
- export CXX="icpc"
- export CFLAGS="-Wall -funroll-loops -march=native -std=c++11"
- export GIT_TAG="v0.0.0"
- export CMAKE_OPT="-DSPU_TESTS=ON -DSPU_COMPILE_STATIC_LIB=ON -DSPU_COMPILE_SHARED_LIB=ON -DSPU_OVERRIDE_VERSION=$GIT_TAG"
- export NAME="build_linux_icpc"
- source ./ci/tools/threads.sh
- ./ci/build-linux-macos.sh
test-memcheck-regression:
image: registry.gitlab.com/aff3ct/aff3ct/x86_64_ubuntu_valgrind
stage: test
variables:
GIT_SUBMODULE_STRATEGY: recursive
except:
- schedules
needs:
- job: analysis-headers
artifacts: false
tags:
- x86_64
- avx2
- linux
- docker
artifacts:
name: test-memcheck-regression
when: always
paths:
- build/Testing
script:
- export CXX="g++"
- export CFLAGS="-Wall -funroll-loops -m64 -mavx2 -mfma"
- export GIT_TAG="v0.0.0"
- export CMAKE_OPT="-DCMAKE_BUILD_TYPE=RelWithDebInfo -DSPU_TESTS=ON -DSPU_COMPILE_STATIC_LIB=ON -DSPU_COMPILE_SHARED_LIB=ON -DSPU_LINK_HWLOC=ON -DSPU_OVERRIDE_VERSION=$GIT_TAG"
- source ./ci/tools/threads.sh
- ./ci/build-linux-macos.sh
- ./ci/test-memcheck-regression.sh
coverage-linux:
image: registry.gitlab.com/aff3ct/aff3ct/x86_64_ubuntu_coverage
stage: coverage
except:
- schedules
needs:
- job: build-linux-gcc-coverage-regression
artifacts: true
tags:
- x86_64
- linux
- docker
coverage: '/.*lines\.*: (\d+.\d+\%)/'
artifacts:
name: code-coverage-report
when: always
paths:
- code_coverage_report/
script:
- ./ci/coverage-linux.sh
pages:
stage: deploy
except:
- schedules
tags:
- linux
dependencies:
- coverage-linux
allow_failure: true
script:
- mv code_coverage_report/ public/
artifacts:
paths:
- public
expire_in: 30 days
only:
- develop