-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
60 lines (57 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
51
52
53
54
55
56
57
58
59
60
stages:
- test
- doc
test:mipy:
stage: test
tags:
- linux
image: python:3.7
interruptible: true
script:
- 'pip install --upgrade mypy pytest'
- 'pip install --upgrade -r requirements.txt'
- 'mypy updater'
only:
- branches@manuelcortez/updater
- release
- tags
- schedules
test:pytest:
stage: test
tags:
- linux
image: python:3.8
interruptible: true
script:
- 'pip install --upgrade pytest coverage'
- 'pip install --upgrade -r requirements.txt'
- 'coverage run --source . --omit conf.py -m pytest --junitxml=report.xml'
- 'coverage report'
- 'coverage xml'
only:
- branches@manuelcortez/updater
- release
- tags
- schedules
artifacts:
when: always
reports:
junit: report.xml
cobertura: coverage.xml
pages:
image: python:latest
tags:
- docker
interruptible: true
only:
- main
stage: doc
script:
- 'pip install --upgrade sphinx'
- 'pip install --upgrade -r requirements.txt'
- 'make html'
- 'mv -f _build/html public'
artifacts:
expire_in: 1 day
paths:
- public