-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.gitlab-ci.yml
45 lines (43 loc) · 952 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
41
42
43
44
45
stages:
- build
- deploy
doorstop:
stage: build
image: ubuntu:bionic
script:
- 'apt-get update && apt-get -y --no-install-recommends install
git
python3-setuptools
python3-pip
ca-certificates
'
# update pip
- python3 -m pip install pip setuptools --upgrade
- python3 -m pip install wheel
# install latest doorstop
- git clone https://github.com/doorstop-dev/doorstop.git
- 'cd doorstop && pip install .'
- 'cd .. && rm -rf doorstop'
# run doorstop
- 'doorstop &> doorstop.log'
- '! grep "WARNING:" doorstop.log'
- '! grep "ERROR:" doorstop.log'
# publish requirements
- doorstop publish all ./docs
artifacts:
expire_in: 1 day
when: always
paths:
- doorstop.log
- docs
pages:
stage: deploy
image: alpine
dependencies:
- doorstop
script:
- mv docs public
artifacts:
name: "$CI_JOB_NAME"
paths:
- public