Commit 0ff97643 authored by okhin's avatar okhin

Fixing the coverage and tests into gtlab-ci

parent 997eb80b
Pipeline #705 failed with stage
in 53 seconds
test python 3:
job test python:
environment:
preprod
script:
- virtualenv --python=python3 env
- source env/bin/activate
- cp picampaign/settings.py.sample picampaign/settings.py
- python setup.py develop
- 'echo ${VIRTUAL_ENV}'
- python manage.py test
- pip install coverage
- ${VIRTUAL_ENV}/bin/coverage --source='.' manage.py test
- ${VIRTUAL_ENV}/bin/coverage report --omit ="${VIRTUAL_ENV}/*",'*__init__.py'
stage: test
tags:
- test
- preprod
#!/bin/bash
coverage run --source='.' manage.py test
coverage report --omit='ve/*','*__init__.py'
${VIRTUAL_ENV}/bin/coverage run --source='.' manage.py test
${VIRTUAL_ENV}/bin/coverage report --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