forked from PyCQA/flake8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
75 lines (61 loc) · 1.01 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
image: python
stages:
- test
- build
- release
before_script:
- curl -O https://bootstrap.pypa.io/get-pip.py
- python get-pip.py
- pip install -r dev-requirements.txt
after_script:
- pip install codecov
- codecov --token=7d117e6b-aab6-4283-ab19-166dafc38cf5
python2:
image: python:2.7
stage: test
script: tox -e py27
python34:
image: python:3.4
stage: test
script: tox -e py34
python35:
image: python:3.5
stage: test
script: tox -e py35
python36:
image: python:3.6
stage: test
script: tox -e py36
python37:
image: python:3.7
stage: test
script: tox -e py37
linters:
image: python:3.6
stage: test
script: tox -e linters
pre-commit:
image: python:3.7
stage: test
script: tox -e pre-commit
docs:
stage: test
script: tox -e docs
dogfood:
stage: test
script: tox -e dogfood
build:
stage: build
script: tox -e build
artifacts:
paths:
- dist/
expire_in: 1 month
release:
stage: release
script: tox -e build
artifacts:
paths:
- dist
only:
- tags