· 6 years ago · Jun 06, 2019, 10:26 PM
1before_script:
2 - python -V
3 - make init
4 - cp test_project/settings.py.sample test_project/local_settings.py
5 - sed -i -e "s/SECRET_KEY = '.*'/SECRET_KEY = '_'/" test_project/local_settings.py
6 - make setup
7
8variables:
9 CODECOV_TOKEN: '0707a6a4-2ac4-4440-a35d-e43c77fd57d2'
10 PIPENV_VENV_IN_PROJECT: 1
11 PIPENV_IGNORE_VIRTUALENVS: 1
12
13stages:
14 - test
15
16python3.4:
17 stage: test
18 image: python:3.4
19 script: pipenv run tox -v -e py34
20
21python3.5:
22 stage: test
23 image: python:3.5
24 script: pipenv run tox -v -e py35
25
26python3.6:
27 stage: test
28 image: python:3.6
29 script: pipenv run tox -v -e py36
30
31python3.7:
32 stage: test
33 image: python:3.7
34 script: pipenv run tox -v -e py37
35
36after_script:
37 - pipenv run codecov