Add code coverage testing to gitlab-ci

This commit is contained in:
John Helmert
2019-06-12 11:53:36 -05:00
parent db0be46523
commit 0a5bfe2d0e

View File

@@ -3,13 +3,15 @@ python2.7:
script: script:
- pip install .[test] - pip install .[test]
- pip install . - pip install .
- python -m pytest tests/ - coverage run -m py.test
- pylint --rcfile .pylintrc -E tuir/ - pylint --rcfile .pylintrc -E tuir/
- coverage report
python3.6: python3.6:
image: python:3.6-stretch image: python:3.6-stretch
script: script:
- pip install .[test] - pip install .[test]
- pip install . - pip install .
- python -m pytest tests/ - coverage run -m py.test
- pylint --rcfile .pylintrc -E tuir/ - pylint --rcfile .pylintrc -E tuir/
- coverage report