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: job test python:
environment: environment:
preprod preprod
script: script:
- virtualenv --python=python3 env - virtualenv --python=python3 env
- source env/bin/activate - source env/bin/activate
- cp picampaign/settings.py.sample picampaign/settings.py - cp picampaign/settings.py.sample picampaign/settings.py
- python setup.py develop - python setup.py develop
- pip install coverage - pip install coverage
- ${VIRTUAL_ENV}/bin/coverage run --source='.' manage.py test - ${VIRTUAL_ENV}/bin/coverage run --source='.' manage.py test
- ${VIRTUAL_ENV}/bin/coverage report --omit ="${VIRTUAL_ENV}/*",'*__init__.py' - ${VIRTUAL_ENV}/bin/coverage report --omit ="${VIRTUAL_ENV}/*",'*__init__.py'
stage: test stage: test
tags: tags: [preprod]
- 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