Skip to content
Snippets Groups Projects
Commit 4000e038 authored by Olivier Bertrand's avatar Olivier Bertrand
Browse files

Update .gitlab-ci.yml

Add coverage
parent aa1e5356
No related branches found
No related tags found
No related merge requests found
...@@ -6,9 +6,9 @@ before_script: ...@@ -6,9 +6,9 @@ before_script:
- python3 -V # Print out python version for debugging - python3 -V # Print out python version for debugging
stages: stages:
- deploy
- build - build
- test - test
- deploy
navipy_install: navipy_install:
...@@ -28,6 +28,17 @@ navipy_unittest: ...@@ -28,6 +28,17 @@ navipy_unittest:
- pip3 install --user networkx - pip3 install --user networkx
- python3 -m unittest discover navipy - python3 -m unittest discover navipy
coverage:
stage: test
script:
- nosetests -c .noserc -q --cover-html-dir=build --cover-html
- coverage report -m
coverage: '/TOTAL.+ ([0-9]{1,3}%)/'
artifacts:
paths:
- build
expire_in: 1 day
doc_build: doc_build:
stage: deploy stage: deploy
before_script: before_script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment