Added job to build package documentation
This commit is contained in:
parent
ff669e7c5a
commit
629e9fc6f6
@ -1,5 +1,6 @@
|
||||
stages:
|
||||
- test
|
||||
- doc
|
||||
|
||||
test:mipy:
|
||||
stage: test
|
||||
@ -26,7 +27,7 @@ test:pytest:
|
||||
script:
|
||||
- 'pip install --upgrade pytest coverage requests_mock'
|
||||
- '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 xml'
|
||||
only:
|
||||
@ -39,3 +40,20 @@ test:pytest:
|
||||
reports:
|
||||
junit: report.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