Commit 5f281b8e authored by okhin's avatar okhin

Updating the coverage in gitlab-ci.yml

parent 5dbb6a4a
Pipeline #710 passed with stage
in 1 minute and 5 seconds
......@@ -4,9 +4,9 @@ job test python:
script:
- virtualenv --python=python3 env
- source env/bin/activate
- cp picampaign/settings.py.sample picampaign/settings.py
- python setup.py develop
- pip install coverage
- python setup.py develop
- cp picampaign/settings.py.sample picampaign/settings.py
- ${VIRTUAL_ENV}/bin/coverage run --source='.' manage.py test
- ${VIRTUAL_ENV}/bin/coverage report --omit ="${VIRTUAL_ENV}/*",'*__init__.py'
stage: test
......
#!/bin/bash
${VIRTUAL_ENV}/bin/coverage run --source='.' manage.py test
${VIRTUAL_ENV}/bin/coverage report -m --skip-covered --omit="${VIRTUAL_ENV}/*",'*__init__.py',"*/test_*.py"
${VIRTUAL_ENV}/bin/coverage report -m --skip-covered --omit="${VIRTUAL_ENV}/*",'*__init__.py'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment