aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: b11bcb9fbf3215758c13115c6c8f503c258af261 (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
stages:
  - build

.builddep_dnf: &builddep_dnf
  - dnf install -y 'dnf-command(builddep)'
  - dnf builddep -y *.spec

.build_meson: &build_meson
  - mkdir build-meson
  - meson . build-meson
  - ninja-build -C build-meson

build_fedora:
  stage: build
  image: fedora:latest
  script:
    - *builddep_dnf
    - *build_meson

build_centos8:
  stage: build
  image: centos:8
  script:
    - dnf install -y 'dnf-command(config-manager)'
    - dnf config-manager --set-enabled cr
    - dnf config-manager --set-enabled Devel
    - dnf config-manager --set-enabled PowerTools
    - dnf repolist --all
    - *builddep_dnf
    - *build_meson