blob: d1d0c4e6589e80254d7822059e557f569c663a7c (
plain)
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
|
stages:
- build
- rpms
- repo
.build_meson: &build_meson
- mkdir build-meson
- meson . build-meson
- ninja-build -C build-meson
build_fedora:
stage: build
image: registry.gitlab.com/kraxel/rpm-package-builder:fedora
before_script:
- dnf builddep -y *.spec
script:
- *build_meson
build_centos8:
stage: build
image: registry.gitlab.com/kraxel/rpm-package-builder:centos8
before_script:
- dnf builddep -y *.spec
script:
- *build_meson
build_centos7:
stage: build
image: registry.gitlab.com/kraxel/rpm-package-builder:centos7
before_script:
- yum-builddep -y *.spec
script:
- *build_meson
tito_fedora:
stage: rpms
image: registry.gitlab.com/kraxel/rpm-package-builder:fedora
before_script:
- dnf builddep -y *.spec
script:
- tito build --test --rpm --output rpms-fedora
- createrepo rpms-fedora
artifacts:
paths:
- rpms-fedora/
pages:
stage: repo
image: registry.gitlab.com/kraxel/rpm-package-builder:fedora
dependencies:
- tito_fedora
script:
- mkdir public
- mv rpms-fedora public/fedora
- find public -type f | sort | while read l; do f=${l#public/}; echo "<a href=\"$f\">$f</a><br>"; done > index.html
- mv index.html public
artifacts:
paths:
- public/
|