]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
gitlabci: add SKIP_CI variable
authorTomas Krizek <tomas.krizek@nic.cz>
Thu, 30 May 2019 11:16:21 +0000 (13:16 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 11 Jun 2019 12:10:45 +0000 (14:10 +0200)
.gitlab-ci.yml

index d66de301ec49ca8af363a7b9aebf3909d3959150..f7ee93129df3b3e706776f999f61a5e1a611ac91 100644 (file)
@@ -26,7 +26,10 @@ stages:
 .build: &build
   stage: build
   except:
-    - master
+    refs:
+      - master
+    variables:
+      - $SKIP_CI == "1"
   artifacts:
     when: always
     paths:
@@ -96,7 +99,10 @@ kres-gen:
 .test: &test
   stage: test
   except:
-    - master
+    refs:
+      - master
+    variables:
+      - $SKIP_CI == "1"
   tags:
     - docker
     - linux
@@ -123,7 +129,10 @@ kres-gen:
 .test_nodep: &test_nodep
   stage: test
   except:
-    - master
+    refs:
+      - master
+    variables:
+      - $SKIP_CI == "1"
   dependencies: []  # do not download build artifacts
   tags:
     - docker
@@ -218,7 +227,10 @@ lint:tidy:
 .pkgbuild: &pkgbuild
   stage: test
   except:
-    - master
+    refs:
+      - master
+    variables:
+      - $SKIP_CI == "1"
   image: $CI_REGISTRY/knot/knot-resolver/ci/fedora
   only:  # trigger job only in repos under our control
     - branches@knot/knot-resolver
@@ -313,7 +325,10 @@ pytests:
     - branches@knot/knot-resolver
     - branches@knot/knot-resolver-security
   except:
-    - master
+    refs:
+      - master
+    variables:
+      - $SKIP_CI == "1"
   script:
     - git diff-index --name-only origin/master | grep -qEv '^(AUTHORS|ci/|config.mk|COPYING|distro/|doc/|etc/|NEWS|README.md|scripts/|tests/|\.gitignore|\.gitlab-ci\.yml|\.travis\.yml)' || test $RESPDIFF_FORCE -gt 0 || exit 0
     - export LABEL=gl$(date +%s)
@@ -383,7 +398,10 @@ fwd-udp6-unbound.tls6:
     - branches@knot/knot-resolver
     - branches@knot/knot-resolver-security
   except:
-    - master
+    refs:
+      - master
+    variables:
+      - $SKIP_CI == "1"
   script:
     - git diff-index --name-only origin/master | grep -qEv '^(AUTHORS|ci/|config.mk|COPYING|distro/|doc/|etc/|NEWS|README.md|scripts/|tests/|\.gitignore|\.gitlab-ci\.yml|\.travis\.yml)' || test $RESPERF_FORCE -gt 0 || exit 0
     - export LABEL=gl$(date +%s)