gitlabci: add SKIP_CI variable

parent dff46d3f
...@@ -26,7 +26,10 @@ stages: ...@@ -26,7 +26,10 @@ stages:
.build: &build .build: &build
stage: build stage: build
except: except:
- master refs:
- master
variables:
- $SKIP_CI == "1"
artifacts: artifacts:
when: always when: always
paths: paths:
...@@ -96,7 +99,10 @@ kres-gen: ...@@ -96,7 +99,10 @@ kres-gen:
.test: &test .test: &test
stage: test stage: test
except: except:
- master refs:
- master
variables:
- $SKIP_CI == "1"
tags: tags:
- docker - docker
- linux - linux
...@@ -123,7 +129,10 @@ kres-gen: ...@@ -123,7 +129,10 @@ kres-gen:
.test_nodep: &test_nodep .test_nodep: &test_nodep
stage: test stage: test
except: except:
- master refs:
- master
variables:
- $SKIP_CI == "1"
dependencies: [] # do not download build artifacts dependencies: [] # do not download build artifacts
tags: tags:
- docker - docker
...@@ -218,7 +227,10 @@ lint:tidy: ...@@ -218,7 +227,10 @@ lint:tidy:
.pkgbuild: &pkgbuild .pkgbuild: &pkgbuild
stage: test stage: test
except: except:
- master refs:
- master
variables:
- $SKIP_CI == "1"
image: $CI_REGISTRY/knot/knot-resolver/ci/fedora image: $CI_REGISTRY/knot/knot-resolver/ci/fedora
only: # trigger job only in repos under our control only: # trigger job only in repos under our control
- branches@knot/knot-resolver - branches@knot/knot-resolver
...@@ -313,7 +325,10 @@ pytests: ...@@ -313,7 +325,10 @@ pytests:
- branches@knot/knot-resolver - branches@knot/knot-resolver
- branches@knot/knot-resolver-security - branches@knot/knot-resolver-security
except: except:
- master refs:
- master
variables:
- $SKIP_CI == "1"
script: 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 - 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) - export LABEL=gl$(date +%s)
...@@ -383,7 +398,10 @@ fwd-udp6-unbound.tls6: ...@@ -383,7 +398,10 @@ fwd-udp6-unbound.tls6:
- branches@knot/knot-resolver - branches@knot/knot-resolver
- branches@knot/knot-resolver-security - branches@knot/knot-resolver-security
except: except:
- master refs:
- master
variables:
- $SKIP_CI == "1"
script: 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 - 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) - export LABEL=gl$(date +%s)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment