Added job to build package documentation
This commit is contained in:
parent
ff669e7c5a
commit
629e9fc6f6
@ -1,5 +1,6 @@
|
|||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
|
- doc
|
||||||
|
|
||||||
test:mipy:
|
test:mipy:
|
||||||
stage: test
|
stage: test
|
||||||
@ -26,7 +27,7 @@ test:pytest:
|
|||||||
script:
|
script:
|
||||||
- 'pip install --upgrade pytest coverage requests_mock'
|
- 'pip install --upgrade pytest coverage requests_mock'
|
||||||
- 'pip install --upgrade -r requirements.txt'
|
- 'pip install --upgrade -r requirements.txt'
|
||||||
- 'coverage run --source . -m pytest --junitxml=report.xml'
|
- 'coverage run --source . --omit conf.py -m pytest --junitxml=report.xml'
|
||||||
- 'coverage report'
|
- 'coverage report'
|
||||||
- 'coverage xml'
|
- 'coverage xml'
|
||||||
only:
|
only:
|
||||||
@ -38,4 +39,21 @@ test:pytest:
|
|||||||
when: always
|
when: always
|
||||||
reports:
|
reports:
|
||||||
junit: report.xml
|
junit: report.xml
|
||||||
cobertura: coverage.xml
|
cobertura: coverage.xml
|
||||||
|
|
||||||
|
pages:
|
||||||
|
image: python:latest
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
interruptible: true
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
stage: doc
|
||||||
|
script:
|
||||||
|
- 'pip install --upgrade sphinx'
|
||||||
|
- 'make html'
|
||||||
|
- 'mv -f _build/html public'
|
||||||
|
artifacts:
|
||||||
|
expire_in: 1 day
|
||||||
|
paths:
|
||||||
|
- public
|
Loading…
Reference in New Issue
Block a user