-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy path.gitlab-ci.yml
57 lines (52 loc) · 1.58 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: registry.gitlab.com/ftpum/ci-images:article-1.7.0
stages:
- build
- deploy
build html:
stage: build
script:
- sudo apt-get update
- sudo apt-get install -y --no-install-recommends texlive-fonts-recommended texlive-latex-extra texlive-fonts-extra texlive-latex-recommended dvipng latexmk autotools-dev libkpathsea-dev libfreetype6-dev libgs-dev libz-dev g++ make python-lxml python-pip python-setuptools git autotools-dev automake autoconf libtool
- sudo pip install "sphinx==1.7.6"
- bin/test_travis.sh
artifacts:
untracked: true
deploy review:
stage: deploy
script:
- sudo apt-get update
- sudo apt-get install -y --no-install-recommends git ssh
- bin/deploy.sh [email protected]:certik/tpr-test public/$CI_COMMIT_REF_NAME
environment:
name: review/$CI_COMMIT_REF_NAME
url: https://certik.gitlab.io/tpr-test/$CI_COMMIT_REF_NAME
on_stop: stop deploy review
only:
- branches
except:
- master
stop deploy review:
stage: deploy
script:
- sudo apt-get update
- sudo apt-get install -y --no-install-recommends git ssh
- bin/deploy.sh [email protected]:certik/tpr-test public/$CI_COMMIT_REF_NAME stop
when: manual
environment:
name: review/$CI_COMMIT_REF_NAME
action: stop
only:
- branches
except:
- master
deploy prod:
stage: deploy
script:
- sudo apt-get update
- sudo apt-get install -y --no-install-recommends git ssh
- bin/deploy.sh [email protected]:certik/tfc-deploy docs/dev
environment:
name: production
url: https://www.theoretical-physics.com/dev/
only:
- master