-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.gitlab-ci.yml
38 lines (34 loc) · 1.04 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
variables:
EOS_PATH: "/eos/user/s/spigazzi/www/docs/h4analysis"
EOS_MGM_URL : "root://eoshome-s.cern.ch"
CI_OUTPUT_DIR: "public"
stages:
- docs
- deploy
# Compile the docs
compilation:
stage: docs
image: gitlab-registry.cern.ch/ci-tools/ci-worker:cc7
script:
- yum -y install python3 pip3 locmap
- pip3 install sphinx breathe sphinx_rtd_theme sphinxcontrib-srclinks
- cd docs/
- make html
- cd -
- mkdir "$CI_OUTPUT_DIR"
- mv docs/build/html/* "$CI_OUTPUT_DIR"
artifacts:
paths:
# Upload as an artifact the folder where the output has been generated
# This will attach to the job the output. It can be browsed or downloaded
- "$CI_OUTPUT_DIR"
# Deploy to an EOS folder the contents generated
deployment:
stage: deploy
# Only when the master branch is pushed
only:
- master
# Custom docker image providing the needed tools to deploy in EOS
image: gitlab-registry.cern.ch/ci-tools/ci-web-deployer:latest
script:
- deploy-eos