-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
212 lines (192 loc) · 5.02 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
stages:
- compile
- run
- test
variables:
CMS_PATH: /cvmfs/cms.cern.ch
.cmssw_compile:
stage: compile
tags:
- cvmfs
artifacts:
# artifacts:untracked ignores configuration in the repository’s .gitignore file.
untracked: true
expire_in: 20 minutes
paths:
- ${CMSSW_RELEASE}
script:
- shopt -s expand_aliases
- set +u && source ${CMS_PATH}/cmsset_default.sh; set -u
- cmsrel ${CMSSW_RELEASE}
- cd ${CMSSW_RELEASE}/src
- cmsenv
- mkdir -p NanoAOD/NanoAnalyzer
# Mind trailing slashes
- rsync -av --exclude '**.git/' --exclude '**/.SCRAM/' --exclude "${CMSSW_BASE}/" "${CI_PROJECT_DIR}/" "${CMSSW_BASE}/src/NanoAOD/NanoAnalyzer/"
- scram b
cmssw_compile_4_2_8:
extends: .cmssw_compile
image:
name: gitlab-registry.cern.ch/cms-cloud/cmssw-docker/slc5-cms:latest
entrypoint: [""]
variables:
CMSSW_RELEASE: CMSSW_4_2_8
SCRAM_ARCH: slc5_amd64_gcc481
cmssw_compile_4_4_7:
extends: .cmssw_compile
image:
name: gitlab-registry.cern.ch/cms-cloud/cmssw-docker/slc5-cms:latest
entrypoint: [""]
variables:
CMSSW_RELEASE: CMSSW_4_4_7
SCRAM_ARCH: slc5_amd64_gcc434
cmssw_compile_5_3_32:
extends: .cmssw_compile
image:
name: gitlab-registry.cern.ch/cms-cloud/cmssw-docker/slc6-cms:latest
entrypoint: [""]
variables:
CMSSW_RELEASE: CMSSW_5_3_32
SCRAM_ARCH: slc6_amd64_gcc700
cmssw_compile_7_6_7:
extends: .cmssw_compile
image:
name: gitlab-registry.cern.ch/cms-cloud/cmssw-docker/slc6-cms:latest
entrypoint: [""]
variables:
CMSSW_RELEASE: CMSSW_7_6_7
SCRAM_ARCH: slc6_amd64_gcc493
cmssw_compile_7_6_4:
extends: .cmssw_compile
image:
name: gitlab-registry.cern.ch/cms-cloud/cmssw-docker/cc7-cms:latest
entrypoint: [""]
variables:
CMSSW_RELEASE: CMSSW_7_6_4
SCRAM_ARCH: slc7_amd64_gcc493
cmssw_compile_10_6_4:
extends: .cmssw_compile
image:
name: gitlab-registry.cern.ch/cms-cloud/cmssw-docker/cc7-cms:latest
entrypoint: [""]
variables:
CMSSW_RELEASE: CMSSW_10_6_4
SCRAM_ARCH: slc7_amd64_gcc700
.cmssw_run:
stage: run
tags:
- cvmfs
artifacts:
expire_in: 6 hours
paths:
- ${CMSSW_RELEASE}/src/test.root
script:
- shopt -s expand_aliases
- set +u && source ${CMS_PATH}/cmsset_default.sh; set -u
- cd ${CMSSW_RELEASE}/src
- cmsenv
- ln -s NanoAOD/NanoAnalyzer/files files
- cmsRun NanoAOD/NanoAnalyzer/${NANOANALYZER}
cmssw_run_data_4_2_8:
extends: .cmssw_run
dependencies:
- cmssw_compile_4_2_8
image:
name: gitlab-registry.cern.ch/cms-cloud/cmssw-docker/slc5-cms:latest
entrypoint: [""]
variables:
CMSSW_RELEASE: CMSSW_4_2_8
SCRAM_ARCH: slc5_amd64_gcc481
NANOANALYZER: nanoanalyzer_cfg_2010Data.py
cmssw_run_mc_4_2_8:
extends: .cmssw_run
dependencies:
- cmssw_compile_4_2_8
image:
name: gitlab-registry.cern.ch/cms-cloud/cmssw-docker/slc5-cms:latest
entrypoint: [""]
variables:
CMSSW_RELEASE: CMSSW_4_2_8
SCRAM_ARCH: slc5_amd64_gcc481
NANOANALYZER: nanoanalyzer_cfg_2010MC.py
cmssw_run_data_4_4_7:
extends: .cmssw_run
dependencies:
- cmssw_compile_4_4_7
image:
name: gitlab-registry.cern.ch/cms-cloud/cmssw-docker/slc5-cms:latest
entrypoint: [""]
variables:
CMSSW_RELEASE: CMSSW_4_4_7
SCRAM_ARCH: slc5_amd64_gcc434
NANOANALYZER: nanoanalyzer_cfg_2011Datapp2.76.py
cmssw_run_data_5_3_32:
extends: .cmssw_run
dependencies:
- cmssw_compile_5_3_32
image:
name: gitlab-registry.cern.ch/cms-cloud/cmssw-docker/slc6-cms:latest
entrypoint: [""]
variables:
CMSSW_RELEASE: CMSSW_5_3_32
SCRAM_ARCH: slc6_amd64_gcc700
NANOANALYZER: nanoanalyzer_cfg_2011Data.py
cmssw_run_mc_5_3_32:
extends: .cmssw_run
dependencies:
- cmssw_compile_5_3_32
image:
name: gitlab-registry.cern.ch/cms-cloud/cmssw-docker/slc6-cms:latest
entrypoint: [""]
variables:
CMSSW_RELEASE: CMSSW_5_3_32
SCRAM_ARCH: slc6_amd64_gcc700
NANOANALYZER: nanoanalyzer_cfg_2011MC.py
.pytest:
stage: test
image: rootproject/root:6.22.08-centos7
before_script:
- export PATH=$HOME/.local/bin:$PATH
- pip3 install -qq --user pytest pyyaml
script:
- input=${CMSSW_VERSION}/src/test.root
- pytest pytest/test_nanoaod.yaml
--input=$input
--output=nanoaod.histos.root
--junit-xml=nanoaod.junit.xml
artifacts:
paths:
- nanoaod.histos.root
reports:
junit: nanoaod.junit.xml
expire_in: 7 days
pytest_data_4_2_8:
extends: .pytest
dependencies:
- cmssw_run_data_4_2_8
variables:
CMSSW_VERSION: CMSSW_4_2_8
pytest_mc_4_2_8:
extends: .pytest
dependencies:
- cmssw_run_mc_4_2_8
variables:
CMSSW_VERSION: CMSSW_4_2_8
pytest_data_4_4_7:
extends: .pytest
dependencies:
- cmssw_run_data_4_4_7
variables:
CMSSW_VERSION: CMSSW_4_4_7
pytest_data_5_3_32:
extends: .pytest
dependencies:
- cmssw_run_data_5_3_32
variables:
CMSSW_VERSION: CMSSW_5_3_32
pytest_mc_5_3_32:
extends: .pytest
dependencies:
- cmssw_run_mc_5_3_32
variables:
CMSSW_VERSION: CMSSW_5_3_32