-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitbucket-pipelines.yml
64 lines (64 loc) · 1.67 KB
/
bitbucket-pipelines.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
pipelines:
default:
- parallel:
- step:
name: Lint
image: python:3.8
caches:
- pip
script:
- python -V
- pip install -r requirements.txt
- pip install pylint
- pylint . bubble ssmtools tests 2>&1 | tee pylint.txt
artifacts:
- pylint.txt
- step:
name: Graph
image: python:3.8
caches:
- pip
script:
- python -V
- apt-get update
- apt-get install -y graphviz
- pip install -r requirements.txt
- pip install pylint
- pyreverse . -o png
- pyreverse . -o svg
artifacts:
- classes.png
- classes.svg
- packages.png
- packages.svg
- step:
name: Test
image: python:3.8
caches:
- pip
script:
- python -V
- pip install -r requirements.txt
- pip install coverage
- coverage run
# - coverage combine
- coverage report | tee coverage.txt
- coverage html
- coverage xml
- coverage json
- bash <(curl -s https://codecov.io/bash)
artifacts:
- coverage.txt
- coverage.xml
- coverage.json
- htmlcov
- step:
name: Test with Python 3.6
image: python:3.6
caches:
- pip
script:
- python -V
- pip install -r requirements.txt
- pip install coverage
- coverage run