.gitlab-ci.yml 489 Bytes
Newer Older
1
job test python:
okhin's avatar
okhin committed
2 3 4 5 6 7
    environment:
        preprod
    script:
        - virtualenv --python=python3 env
        - source env/bin/activate
        - pip install coverage
okhin's avatar
okhin committed
8 9
        - python setup.py develop
        - cp picampaign/settings.py.sample picampaign/settings.py
okhin's avatar
okhin committed
10 11 12 13 14 15
        - ${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