]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
gitlabci: add OBS build check (all archs+distros)
authorTomas Krizek <tomas.krizek@nic.cz>
Tue, 4 Jun 2019 12:34:43 +0000 (14:34 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 11 Jun 2019 12:10:45 +0000 (14:10 +0200)
.gitlab-ci.yml

index 1eda54ec4699a315c8d715599e3204ef36081dcd..6b6bf80b7c540686264e9861fb96da63faea4ee1 100644 (file)
@@ -561,4 +561,19 @@ obs:ubuntu1904:x86_64:
   variables:
     DISTROTEST_NAME: ubuntu1904
     DISTROTEST_REPO: xUbuntu_19.04
+
+obs:build:all:
+  stage: deploy-test
+  only:
+    variables:
+      - $OBS_REPO
+  when: delayed
+  start_in: 3 minutes  # give OBS build some time
+  tags:
+    - respdiff
+  script:
+    - "osc results home:CZ-NIC:$OBS_REPO knot-resolver -w"
+    - >
+      osc results home:CZ-NIC:$OBS_REPO knot-resolver --csv | grep 'succeeded|$' -q || \
+        (echo "ERROR: build(s) failed"; exit 1)
 # }}}