fmartingr
/
jeeves
Archived
1
0
Fork 0

gitlab-ci: Run HTML coverage directly in tests

This commit is contained in:
Felipe Martin 2019-10-06 13:31:02 +02:00
parent 8e482bd787
commit d577ed5499
Signed by: fmartingr
GPG Key ID: 716BC147715E716F
1 changed files with 3 additions and 3 deletions

View File

@ -25,10 +25,10 @@ before_script:
test: test:
stage: test stage: test
script: script:
- poetry run pytest . --cov=jeeves.core --cov-report xml --cov-report term - poetry run pytest . --cov=jeeves.core --cov-report html --cov-report term
artifacts: artifacts:
paths: paths:
- coverage.xml - htmlcov
pages: pages:
stage: deploy stage: deploy
@ -37,7 +37,7 @@ pages:
script: script:
- poetry run docs/build.sh - poetry run docs/build.sh
- mv docs/_build/html/ public - mv docs/_build/html/ public
- coverage html --directory public/htmlcov - mv htmlcov public/htmlcov
artifacts: artifacts:
paths: paths:
- public - public