-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitlab-ci.yml
51 lines (44 loc) · 1.11 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
# /************************************************************************
# File: .gitlab-ci.yml
# Author: mdr0id
# Date: 7/25/2018
# Description: Used to setup runners/jobs for RTD
# Usage: Commit source and the pipeline will trigger the according jobs
#
# Known bugs/missing features:
#
# ************************************************************************/
image: python:3.6-alpine
stages:
- build
- test
- stage_site
- deploy
- cleanup
# setup the essential pacakges for RTD to build gracefully; parallels
# user-guide README
before_script:
- apk add make git
- pip3 install -r ./source/requirements.txt
# main job to build the RTD stack in the docker runner
build_job:
stage: build
script:
- make html
# serve the RTD html files on staging branch on GitLab pages
pages:
stage: stage_site
script:
- make html
- mv build/html public
artifacts:
paths:
- public
only:
- stage
# ignore deploy_job; this will be used to push pdfs, per version, in future
.deploy_job:
stage: deploy
script:
- echo "deploy_job not implemented"
allow_failure: true