-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
179 lines (167 loc) · 6.46 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
stages:
- Docker
- Trigger
- Build
# Buil jobs for manual and automatic
# -------------------------------------
# These jobs will trigger the docker image creation for pogitlab in the gitlab-integration project
# automatically for the master branch and manual for the rest
trigger-pogitlab:
stage: Trigger
only:
- master@atlas-physics-office/atlaslatex
script:
- curl --request POST --form "token=$CI_JOB_TOKEN" --form ref=master https://gitlab.cern.ch/api/v4/projects/19489/trigger/pipeline
# These jobs will run the docker image creation with the current version of atlaslatex
# This happens automatically for the master branch and manual for the rest
build_image:
stage: Docker
only:
- master@atlas-physics-office/atlaslatex
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- echo building image
- /kaniko/executor
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/.config/Dockerfile
--destination $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
# This automatically builds the INT note template and sends it to a publicly accessible space
# https://gitlab.cern.ch/atlas-physics-office/atlaslatex/-/jobs/artifacts/master/file/mydocument.pdf?job=build_NOTE
# This happens automatically for the master branch and manual for the rest
build_NOTE:
image: gitlab-registry.cern.ch/atlas-physics-office/gitlab-integration/texlive:2020
stage: Build
only:
- master@atlas-physics-office/atlaslatex
script:
- make newnote BASENAME=myExample_INT
- make BASENAME=myExample_INT
artifacts:
paths:
- myExample_INT.pdf
expire_in: 1 year
# this automatically builds the PAPER template
# https://gitlab.cern.ch/atlas-physics-office/atlaslatex/-/jobs/artifacts/master/file/mydocument.pdf?job=build_PAPER
# This happens automatically for the master branch and manual for the rest
build_PAPER:
image: gitlab-registry.cern.ch/atlas-physics-office/gitlab-integration/texlive:2020
stage: Build
only:
- master@atlas-physics-office/atlaslatex
script:
- make newpaper BASENAME=myExample_PAPER
- make BASENAME=myExample_PAPER
artifacts:
paths:
- myExample_PAPER.pdf
expire_in: 1 year
# this automatically builds the ATLAS LaTeX bibliography documentation
# https://gitlab.cern.ch/atlas-physics-office/atlaslatex/-/jobs/artifacts/master/file/doc/atlas_bibtex/atlas_bibtex.pdf?job=build_bibtex
# This happens automatically for the master branch and manual for the rest
build_bibtex:
image: gitlab-registry.cern.ch/atlas-physics-office/gitlab-integration/texlive:2020
stage: Build
only:
- master@atlas-physics-office/atlaslatex
script:
- cd doc/atlas_bibtex
- make
artifacts:
paths:
- doc/atlas_bibtex/atlas_bibtex.pdf
expire_in: 1 year
# this automatically builds the ATLAS LaTeX user documentation
# https://gitlab.cern.ch/atlas-physics-office/atlaslatex/-/jobs/artifacts/master/file/doc/atlas_latex/atlas_latex.pdf?job=build_user
# This happens automatically for the master branch and manual for the rest
build_user:
image: gitlab-registry.cern.ch/atlas-physics-office/gitlab-integration/texlive:2020
stage: Build
only:
- master@atlas-physics-office/atlaslatex
script:
- cd doc/atlas_latex
- make
artifacts:
paths:
- doc/atlas_latex/atlas_latex.pdf
expire_in: 1 year
# this automatically builds the ATLAS LaTeX physics macros documentation
# https://gitlab.cern.ch/atlas-physics-office/atlaslatex/-/jobs/artifacts/master/file/doc/atlas_physics.pdf?job=build_physics
# https://gitlab.cern.ch/atlas-physics-office/atlaslatex/-/jobs/artifacts/master/file/doc/atlas_hepphysics.pdf?job=build_physics
# This happens automatically for the master branch and manual for the rest
build_physics:
image: gitlab-registry.cern.ch/atlas-physics-office/gitlab-integration/texlive:2020
stage: Build
only:
- master@atlas-physics-office/atlaslatex
script:
- cd doc/atlas_physics
- make atlas_physics
- make atlas_hepphysics
artifacts:
paths:
- doc/atlas_physics/atlas_physics.pdf
- doc/atlas_physics/atlas_hepphysics.pdf
expire_in: 1 year
# this automatically builds the ATLAS LaTeX tables documentation
# https://gitlab.cern.ch/atlas-physics-office/atlaslatex/-/jobs/artifacts/master/file/doc/atlas_tables.pdf?job=build_tables
# This happens automatically for the master branch and manual for the rest
build_tables:
image: gitlab-registry.cern.ch/atlas-physics-office/gitlab-integration/texlive:2020
stage: Build
only:
- master@atlas-physics-office/atlaslatex
script:
- cd doc/atlas_tables
- make
artifacts:
paths:
- doc/atlas_tables/atlas_tables.pdf
expire_in: 1 year
# this automatically builds the PMG MC snippets documet and sends it to a publicly accessible space
# https://gitlab.cern.ch/atlas-physics-office/atlaslatex/-/jobs/artifacts/master/file/template/MC_snippets/MC_snippets.pdf?job=build_MCsnippet
# This happens automatically for the master branch and manual for the rest
build_MCsnippet:
image: gitlab-registry.cern.ch/atlas-physics-office/gitlab-integration/texlive:2020
stage: Build
only:
- master@atlas-physics-office/atlaslatex
script:
- cd template/MC_snippets
- make
artifacts:
paths:
- template/MC_snippets/MC_snippets.pdf
expire_in: 1 year
# this automatically builds the exotics template and sends it to a publicly accessible space
# https://gitlab.cern.ch/atlas-physics-office/atlaslatex/-/jobs/artifacts/master/file/template/EXOT/EXOT_template.pdf?job=build_EXOT
# This happens automatically for the master branch and manual for the rest
build_EXOT:
image: gitlab-registry.cern.ch/atlas-physics-office/gitlab-integration/texlive:2020
stage: Build
only:
- master@atlas-physics-office/atlaslatex
script:
- cd template/EXOT
- make
artifacts:
paths:
- template/EXOT/EXOT_template.pdf
expire_in: 1 year
# this automatically builds the SUSY template and sends it to a publicly accessible space
# https://gitlab.cern.ch/atlas-physics-office/atlaslatex/-/jobs/artifacts/master/file/template/SUSY/SUSY_template.pdf?job=build_SUSY
# This happens automatically for the master branch and manual for the rest
build_SUSY:
image: gitlab-registry.cern.ch/atlas-physics-office/gitlab-integration/texlive:2020
stage: Build
only:
- master@atlas-physics-office/atlaslatex
script:
- cd template/SUSY
- make
artifacts:
paths:
- template/SUSY/SUSY_template.pdf
expire_in: 1 year