-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy path.gitlab-ci.yml
111 lines (101 loc) · 2.18 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
stages: # List of stages for jobs, and their order of execution
- python27
- python36
- python37
- python38
- python39
- python310
- python311
- full_test
.test-job:
needs: []
timeout: 10m
retry: 2
script:
- |
cat <<EOT >> config.yaml
channelid: '$CHANNEL_ID'
bottoken: '$BOT_TOKEN'
EOT
- pip install -r requirements.txt -r requirements-dev.txt OctoPrint==$OCTOVER
- python setup.py bdist_wheel
- pip install dist/*.whl
- FAST_TEST=1 pytest
.install-only:
needs: []
timeout: 10m
retry: 2
script:
- pip install -r requirements.txt OctoPrint==$OCTOVER
- python setup.py bdist_wheel
- pip install dist/*.whl
python27-installonly:
stage: python27
parallel:
matrix:
- OCTOVER: [ '1.7.3' ]
extends: .install-only
image: python:2.7
python36-installonly:
stage: python36
parallel:
matrix:
- OCTOVER: [ '1.7.3' ]
extends: .install-only
image: python:3.6
python37:
stage: python37
parallel:
matrix:
- OCTOVER: [ '1.7.3', '1.8.7' ]
extends: .test-job
image: python:3.7
python38:
stage: python38
parallel:
matrix:
- OCTOVER: [ '1.7.3', '1.8.7', '1.9.2' ]
extends: .test-job
image: python:3.8
python39:
stage: python39
parallel:
matrix:
- OCTOVER: [ '1.7.3', '1.8.7', '1.9.2' ]
extends: .test-job
image: python:3.9
python310:
stage: python310
parallel:
matrix:
- OCTOVER: [ '1.9.2' ]
extends: .test-job
image: python:3.10
python311:
stage: python311
parallel:
matrix:
- OCTOVER: [ '1.9.2' ]
extends: .test-job
image: python:3.11
full_test:
stage: python311
image: python:3.11
timeout: 20m
retry: 2
script:
- |
cat <<EOT >> config.yaml
channelid: '$CHANNEL_ID'
bottoken: '$BOT_TOKEN'
EOT
- pip install -r requirements.txt -r requirements-dev.txt OctoPrint=='1.9.2'
- python setup.py bdist_wheel
- pip install dist/*.whl
- pytest --cov --cov-report term --cov-report xml:coverage.xml
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml