-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
54 lines (48 loc) · 971 Bytes
/
.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
image: python:latest
before_script:
- python -V
stages:
- badges
- style
- test
docs:
stage: badges
before_script:
- pip install anybadge
script:
- mkdir public
- anybadge --label=docs --value=passing --file=public/docs.svg passing=green
artifacts:
paths:
- public/docs.svg
pep8:
stage: style
before_script:
- pip install -r ci/pycodestyle_requirements.txt
script:
- ./ci/pycodestyle_runner.sh
artifacts:
paths:
- public/pycodestyle.txt
- public/pycodestyle.svg
pylint:
stage: style
before_script:
- pip install -r requirements.txt
- pip install -r ci/pylint_requirements.txt
script:
- ./ci/pylint_runner.sh
artifacts:
paths:
- public/pylint.svg
- public/pylint.html
api_test:
stage: test
before_script:
- pip install -r requirements.txt
script:
- ./ci/api_test.sh
artifacts:
paths:
- public/api_test.svg
- public/api_test.txt