forked from RedHatProductSecurity/advisory-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
101 lines (71 loc) · 1.59 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
stages:
- test
- build_sdist
- build_rpm
before_script:
- export LANG=en_US.UTF-8
test:
image: registry.fedoraproject.org/fedora:31
stage: test
script:
- dnf -y install rpmlint tox
- rpmlint python-advisory-parser.spec
- tox
build_sdist:
image: registry.fedoraproject.org/fedora:31
stage: build_sdist
when: manual
allow_failure: false # Do not execute RPM jobs below unless this one is run/succeeds.
script:
- python3 setup.py clean sdist
artifacts:
paths:
- dist/
rpm:fedora-latest:
# Build latest Fedora RPM
image: registry.fedoraproject.org/fedora:31
stage: build_rpm
dependencies:
- build_sdist
script:
- bash -e build_rpm.sh "fedora" "python-advisory-parser.spec"
artifacts:
paths:
- SRPMS/
- RPMS/
rpm:fedora-secondary:
# Build secondary Fedora RPM
image: registry.fedoraproject.org/fedora:30
stage: build_rpm
dependencies:
- build_sdist
script:
- bash -e build_rpm.sh "fedora" "python-advisory-parser.spec"
artifacts:
paths:
- SRPMS/
- RPMS/
rpm:el7:
# Build RPM for Enterprise Linux 7 (CentOS 7, RHEL 7)
image: centos:7
stage: build_rpm
dependencies:
- build_sdist
script:
- bash -e build_rpm.sh "el7" "python-advisory-parser.spec"
artifacts:
paths:
- SRPMS/
- RPMS/
rpm:el8:
# Build RPM for Enterprise Linux 8 (CentOS 8, RHEL 8)
image: centos:8
stage: build_rpm
dependencies:
- build_sdist
script:
- bash -e build_rpm.sh "el8" "python-advisory-parser.spec"
artifacts:
paths:
- SRPMS/
- RPMS/