.gitlab-ci.yml 422 Bytes
Newer Older
1 2 3
job test python:
  environment:
    preprod
okhin's avatar
okhin committed
4
  script:
5
    - virtualenv --python=python3 env
okhin's avatar
okhin committed
6
    - source env/bin/activate
7
    - cp picampaign/settings.py.sample picampaign/settings.py
okhin's avatar
okhin committed
8
    - python setup.py develop
9 10 11
    - pip install coverage
    - ${VIRTUAL_ENV}/bin/coverage --source='.' manage.py test
    - ${VIRTUAL_ENV}/bin/coverage report --omit ="${VIRTUAL_ENV}/*",'*__init__.py'
okhin's avatar
okhin committed
12 13
  stage: test
  tags:
14
    - preprod