Commit 2c4d9d5e authored by okhin's avatar okhin

Improving the gitlab-ci file

parent 420f0bb5
Pipeline #706 passed with stage
in 1 minute and 3 seconds
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
- pip install coverage
- ${VIRTUAL_ENV}/bin/coverage run --source='.' manage.py test
- ${VIRTUAL_ENV}/bin/coverage report --omit ="${VIRTUAL_ENV}/*",'*__init__.py'
stage: test
tags:
- preprod
environment:
preprod
script:
- virtualenv --python=python3 env
- source env/bin/activate
- cp picampaign/settings.py.sample picampaign/settings.py
- python setup.py develop
- pip install coverage
- ${VIRTUAL_ENV}/bin/coverage run --source='.' manage.py test
- ${VIRTUAL_ENV}/bin/coverage report --omit ="${VIRTUAL_ENV}/*",'*__init__.py'
stage: test
tags: [preprod]
only:
- master
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