-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
40 lines (37 loc) · 890 Bytes
/
.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
# This file is a template, and might need editing before it works on your project.
# docker image.
image: registry.gitlab.com/latex-template/docker
build:
stage: build
script:
- latexmk -synctex=1 -interaction=batchmode -halt-on-error -file-line-error -pdf document
artifacts:
paths:
- document.pdf
- document.log
- document.synctex.gz
expire_in: 1 week
except:
- tags
build_chapter:
stage: build
script:
- cd sections
- find . -name '*.tex' -exec latexmk -interaction=nonstopmode -file-line-error -pdf {} \;
artifacts:
paths:
- sections/*.pdf
expire_in: 1 week
except:
- tags
build_release:
stage: build
script:
- latexmk -synctex=1 -interaction=batchmode -halt-on-error -file-line-error -pdf document
artifacts:
paths:
- document.pdf
- document.log
- document.synctex.gz
only:
- tags