-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
57 lines (51 loc) · 1.08 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
image: "projects.cispa.saarland:5005/bushart/docker/latex-ci:master"
stages:
- build
- check
- artifacts
# Produce all the LaTeX artifacts for the following stages
build:
stage: build
script:
- make all
artifacts:
untracked: true
when: always
expire_in: 1 day
# Run all the pre-commit checks also in CI such that they don't slip
pre-commit:
stage: check
# We want a prestine checkout here
dependencies: []
script:
- pre-commit run --all-files --show-diff-on-failure
# Perform additional sanity checks
sanity-checks:
stage: check
dependencies:
- build
script:
- python3 ./.ci/sanity-checks.py
# Upload the final artifacts but with a long lifetime
artifacts:pdf:
stage: artifacts
dependencies:
- build
script:
- echo "Saving Paper Artifact"
artifacts:
expose_as: "Paper PDF"
name: "Paper"
paths:
- paper.pdf
artifacts:source:
stage: artifacts
dependencies:
- build
script:
- echo "Saving Paper Source Artifact"
artifacts:
expose_as: "Sources ZIP"
name: "Sources"
paths:
- sources.zip