-
Notifications
You must be signed in to change notification settings - Fork 15
/
.gitlab-ci.yml
37 lines (33 loc) · 944 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
---
stages:
- linkchecker
- spellchecker
- build
image: python:3.10-alpine
linkchecker:
stage: linkchecker
only:
- schedules
script:
- apk add --no-cache git bash curl
- bash .ci/linkchecker.sh
spellchecker:
stage: spellchecker
script:
- apk add --no-cache bash curl
- curl -L -o ./install-misspell.sh https://git.io/misspell
- bash ./install-misspell.sh
- ./bin/misspell -error .
build:
stage: build
when: on_success
script:
- pip install --upgrade pip
- pip install -r requirements.txt
# '-W': Turn warnings into errors
# '--keep-going': When encountering a warning continue to process (this
# allows us to capture multiple warnings at the same time, avoiding the
# 'build->warning->fix->build->warning' loop where both fixes could be
# solved at the same time)
# '-n': Warn about internal missing references
- sphinx-build -W --keep-going -n . _build