aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-08-05 15:24:58 +0200
committerGerd Hoffmann <kraxel@redhat.com>2020-08-05 15:24:58 +0200
commit43a028e1353783eb1091a1c5e80af1fd5d599a35 (patch)
treeaaecf374c24f55cf50da2c6405d365a589703598
parent23632a3f2de3af9757aacf95d5b6401e14b6a012 (diff)
downloadgterm-43a028e1353783eb1091a1c5e80af1fd5d599a35.tar.gz
ci: try anchors
-rw-r--r--.gitlab-ci.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ed6c511..5608d62 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,12 +1,15 @@
stages:
- build
+.builddep_dnf: &builddep_dnf
+ - dnf install -y 'dnf-command(builddep)'
+ - dnf builddep -y *.spec
+
build_fedora:
stage: build
image: fedora:latest
script:
- - dnf install -y 'dnf-command(builddep)'
- - dnf builddep -y *.spec
+ - *builddep_dnf
- mkdir build-meson
- meson . build-meson
- ninja-build -C build-meson