-
Notifications
You must be signed in to change notification settings - Fork 22
/
.gitlab-ci.yml
122 lines (106 loc) · 2.51 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
112
113
114
115
116
117
118
119
120
121
122
---
.integration: &integration
stage: integration
tags:
- dcermak-bci-tester
script:
- tox -e build -- -n auto
- tox -e all,base,init,dotnet,python,node,go,openjdk,openjdk_devel,minimal,repository,metadata,multistage --parallel -- --reruns 3 --reruns-delay 10
before_script: []
after_script:
- "($CONTAINER_RUNTIME ps -aq|xargs $CONTAINER_RUNTIME rm -f) || :"
- "($CONTAINER_RUNTIME images -aq|xargs $CONTAINER_RUNTIME rmi -f) || :"
artifacts:
when: always
reports:
junit: junit_*.xml
stages:
- test
- deploy
- integration
cache:
paths:
- .tox
before_script:
- pip install tox
default:
timeout: 2h
test_36:
image: python:3.6
script:
- tox -e py36-unit
test_37:
image: python:3.7
script:
- tox -e py37-unit
test_38:
image: python:3.8
script:
- tox -e py38-unit
test_39:
image: python:3.9
script:
- tox -e format -- --check
- tox -e py39-unit
test_310:
image: python:3.10
script:
- tox -e py310-unit
doc:
image: python
script:
- tox -e doc
artifacts:
paths:
- build/html/
pages:
stage: deploy
before_script: []
dependencies:
- doc
script:
- mkdir public
- mv build/html/* public/
artifacts:
paths:
- public
integration_tests_docker:
<<: *integration
variables:
TOX_PARALLEL_NO_SPINNER: 1
CONTAINER_RUNTIME: docker
integration_tests_podman:
<<: *integration
variables:
TOX_PARALLEL_NO_SPINNER: 1
CONTAINER_RUNTIME: podman
integration_tests_podman_with_bci_repo:
<<: *integration
variables:
TOX_PARALLEL_NO_SPINNER: 1
CONTAINER_RUNTIME: podman
script:
- export BUILD_ID=$(curl -s http://dist.nue.suse.com/ibs/SUSE:/SLE-15-SP3:/Update:/BCI/images/repo/ | grep "\-Build"|head -1| sed 's/.*Build//' | sed 's/-Media.*//')
- export BCI_DEVEL_REPO="http://dist.nue.suse.com/ibs/SUSE:/SLE-15-SP3:/Update:/BCI/images/repo/SLE-BCI-15-SP3-x86_64-Build${BUILD_ID}-Media1/"
- tox -e build -- -n auto
- tox -e all,base,init,dotnet,python,node,go,openjdk,openjdk_devel,minimal,repository,metadata,multistage --parallel -- --reruns 3 --reruns-delay 10
fips:
stage: integration
tags:
- dcermak-bci-tester
before_script:
- vagrant box update
script:
- vagrant up fips
after_script:
- "vagrant destroy -f fips || :"
build_on_registered_system:
stage: integration
tags:
- dcermak-bci-tester
before_script:
- vagrant box update
script:
- vagrant up registered
after_script:
- "vagrant destroy -f registered || :"