forked from AIDASoft/DD4hep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
245 lines (229 loc) · 6.96 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
234
235
236
237
238
239
240
241
242
243
244
245
stages:
- build
- documentation
- deployment
slc6-gcc7-Geant10.2:
stage: build
tags:
- docker
image: clicdp/slc6-base
script:
- export COMPILER_TYPE="gcc"
- export GEANT4_VERSION="10.02.p03"
- source .dd4hep-ci.d/init_x86_64.sh
- mkdir build
- cd build
- cmake -GNinja -DDD4HEP_USE_GEANT4=ON -DBoost_NO_BOOST_CMAKE=ON -DDD4HEP_USE_LCIO=ON -DBUILD_TESTING=ON -DGeant4_DIR=$G4INSTALL/lib64/Geant4-10.2.3 -DCMAKE_BUILD_TYPE=Release -DROOT_DIR=$ROOTSYS ..
- ninja
- ninja install
- . ../bin/thisdd4hep.sh
- ctest --output-on-failure -j4
- cd ../examples/
- mkdir build
- cd build
- cmake -GNinja ..
- ninja
- ninja install
- ctest --output-on-failure
slc6-ggc7-Geant10.3:
stage: build
tags:
- docker
image: clicdp/slc6-base
script:
- export COMPILER_TYPE="gcc"
- export GEANT4_VERSION="10.03.p03"
- source .dd4hep-ci.d/init_x86_64.sh
- mkdir build
- cd build
- cmake -GNinja -DDD4HEP_USE_GEANT4=ON -DBoost_NO_BOOST_CMAKE=ON -DDD4HEP_USE_LCIO=ON -DBUILD_TESTING=ON -DGeant4_DIR=$G4INSTALL/lib64/Geant4-10.3.3 -DCMAKE_BUILD_TYPE=Release -DROOT_DIR=$ROOTSYS ..
- ninja
- ninja install
- . ../bin/thisdd4hep.sh
- ctest --output-on-failure -j4
- cd ../examples/
- mkdir build
- cd build
- cmake -GNinja ..
- ninja
- ninja install
- ctest --output-on-failure
slc6-gcc7-Geant10.4-XERCESC:
stage: build
tags:
- docker
image: clicdp/slc6-base
script:
- export COMPILER_TYPE="gcc"
- export GEANT4_VERSION="10.04"
- source .dd4hep-ci.d/init_x86_64.sh
- mkdir build
- cd build
- cmake -GNinja -DDD4HEP_USE_GEANT4=ON -DBoost_NO_BOOST_CMAKE=ON -DDD4HEP_USE_LCIO=ON -DBUILD_TESTING=ON -DGeant4_DIR=$G4INSTALL/lib64/Geant4-10.4.0 -DCMAKE_CXX_STANDARD=14 -DCMAKE_BUILD_TYPE=Release -DDD4HEP_USE_XERCESC=ON -DXERCESC_ROOT_DIR=${XercesC_HOME} -DROOT_DIR=$ROOTSYS ..
- ninja
- ninja install
- . ../bin/thisdd4hep.sh
- ctest --output-on-failure -j4
- cd ../examples/
- mkdir build
- cd build
- cmake -GNinja -DXERCESC_ROOT_DIR=${XercesC_HOME} ..
- ninja
- ninja install
- ctest --output-on-failure
slc6-llvm5-Geant10.4:
stage: build
tags:
- docker
image: clicdp/slc6-base
script:
- export COMPILER_TYPE="llvm"
- export GEANT4_VERSION="10.04"
- source .dd4hep-ci.d/init_x86_64.sh
- mkdir build
- cd build
- cmake -GNinja -DDD4HEP_USE_GEANT4=ON -DBoost_NO_BOOST_CMAKE=ON -DDD4HEP_USE_LCIO=ON -DBUILD_TESTING=ON -DGeant4_DIR=$G4INSTALL/lib64/Geant4-10.4.0 -DCMAKE_CXX_STANDARD=14 -DCMAKE_BUILD_TYPE=Release -DROOT_DIR=$ROOTSYS ..
- ninja
- ninja install
- . ../bin/thisdd4hep.sh
- ctest --output-on-failure -j4
- cd ../examples/
- mkdir build
- cd build
- cmake -GNinja ..
- ninja
- ninja install
- ctest --output-on-failure
slc6-llvm5-Geant10.3-XERCESC:
stage: build
tags:
- docker
image: clicdp/slc6-base
script:
- export COMPILER_TYPE="llvm"
- export GEANT4_VERSION="10.03.p03"
- source .dd4hep-ci.d/init_x86_64.sh
- mkdir build
- cd build
- cmake -GNinja -DDD4HEP_USE_GEANT4=ON -DBoost_NO_BOOST_CMAKE=ON -DDD4HEP_USE_LCIO=ON -DBUILD_TESTING=ON -DGeant4_DIR=$G4INSTALL/lib64/Geant4-10.3.3 -DCMAKE_BUILD_TYPE=Release -DDD4HEP_USE_XERCESC=ON -DXERCESC_ROOT_DIR=${XercesC_HOME} -DROOT_DIR=$ROOTSYS ..
- ninja
- ninja install
- . ../bin/thisdd4hep.sh
- ctest --output-on-failure -j4
- cd ../examples/
- mkdir build
- cd build
- cmake -GNinja -DXERCESC_ROOT_DIR=${XercesC_HOME} ..
- ninja
- ninja install
- ctest --output-on-failure
mac1013-llvm90-Geant10.3:
stage: build
tags:
- mac
script:
- export GEANT4_VERSION="10.03.p03"
- source .dd4hep-ci.d/init_x86_64.sh
- mkdir build
- cd build
- cmake -GNinja -DDD4HEP_USE_GEANT4=ON -DBoost_NO_BOOST_CMAKE=ON -DDD4HEP_USE_LCIO=ON -DBUILD_TESTING=ON -DGeant4_DIR=$G4INSTALL/lib/Geant4-10.3.3 -DCMAKE_CXX_STANDARD=14 -DCMAKE_BUILD_TYPE=Release -DROOT_DIR=$ROOTSYS ..
- ninja
- ninja install
- . ../bin/thisdd4hep.sh
- ctest --output-on-failure -j4
- cd ../examples/
- mkdir build
- cd build
- cmake -GNinja ..
- ninja
- ninja install
- ctest --output-on-failure
mac1013-llvm90-Geant10.4-XERCESC:
stage: build
tags:
- mac
script:
- export GEANT4_VERSION="10.04"
- source .dd4hep-ci.d/init_x86_64.sh
- mkdir build
- cd build
- cmake -GNinja -DDD4HEP_USE_GEANT4=ON -DBoost_NO_BOOST_CMAKE=ON -DDD4HEP_USE_LCIO=ON -DBUILD_TESTING=ON -DGeant4_DIR=$G4INSTALL/lib/Geant4-10.4.0 -DCMAKE_BUILD_TYPE=Release -DDD4HEP_USE_XERCESC=ON -DXERCESC_ROOT_DIR=${XercesC_HOME} -DROOT_DIR=$ROOTSYS ..
- ninja
- ninja install
- . ../bin/thisdd4hep.sh
- ctest --output-on-failure -j4
- cd ../examples/
- mkdir build
- cd build
- cmake -GNinja -DXERCESC_ROOT_DIR=${XercesC_HOME} ..
- ninja
- ninja install
- ctest --output-on-failure
#############################
# Documentation Compilation #
#############################
# Compile Doxygen reference
doxygen:
stage: documentation
tags:
- docker
image: clicdp/slc6-build
script:
- source .dd4hep-ci.d/init_x86_64.sh
- mkdir -p public
- mkdir build
- cd build
- cmake -DBUILD_DOCS_ONLY=ON ..
- make reference
- mv reference/html ../public/reference
artifacts:
paths:
- public
expire_in: 3 hour
# Compile LaTeX user manual:
usermanuals:
stage: documentation
tags:
- docker
image: gitlab-registry.cern.ch/clicdp/publications/templates/custom_ci_worker:fedora-latex-latest
script:
- mkdir -p public/usermanuals
- mkdir build
- cd build
- cmake -DBUILD_DOCS_ONLY=ON ..
- make pdf
- make html
- mv DD4hepManual ../public/usermanuals/.
- mv DDAlignManual ../public/usermanuals/.
- mv DDCondManual ../public/usermanuals/.
- mv DDEveManual ../public/usermanuals/.
- mv DDG4Manual ../public/usermanuals/.
- mv DDRecManual ../public/usermanuals/.
artifacts:
paths:
- public
expire_in: 3 hour
############################
# Documentation Deployment #
############################
# Automatically deploy documentation to the website
# Deployment job only executed for new tag pushs, not for every commit.
deploy-documentation:
variables:
EOS_PATH: "/eos/project/d/dd4hep/www/"
only:
- tags@CLICdp/DetectorSoftware/DD4hep
- branches@CLICdp/DetectorSoftware/DD4hep
stage: deployment
tags:
- docker
dependencies:
- usermanuals
- doxygen
# Docker image with tools to deploy to EOS
image: gitlab-registry.cern.ch/ci-tools/ci-web-deployer:latest
script:
- deploy-eos
# do not run any globally defined before_script or after_script for this step
before_script: []
after_script: []