-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
73 lines (64 loc) · 1.08 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
# .gitlab-ci.yml
.tox-image:
image:
name: quay.io/redhat-aqe/tox:python-3.10
# Entrypoint: /bin/sh
entrypoint:
- ""
.runner-tags:
tags:
- shared
stages:
- unit-testing
- format-style-check
- sast-analysis
- integration-e2e-testing
unit-tests:
extends:
- .runner-tags
- .tox-image
stage: unit-testing
script:
- tox -e unittests
coverage: '/Total coverage: \d+\.\d+\%/'
artifacts:
name: "$CI_COMMIT_REF_NAME"
paths:
- coverage.xml
black:
extends:
- .runner-tags
- .tox-image
stage: format-style-check
script:
- tox -e black
flake8:
extends:
- .runner-tags
- .tox-image
stage: format-style-check
script:
- tox -e flake8
mypy:
extends:
- .runner-tags
- .tox-image
stage: sast-analysis
script:
- tox -e mypy
integration-test:
extends:
- .runner-tags
- .tox-image
stage: integration-e2e-testing
when: manual
script:
- tox -e int
e2e-test:
extends:
- .runner-tags
- .tox-image
stage: integration-e2e-testing
when: manual
script:
- tox -e e2e