Skip to content
Snippets Groups Projects
Verified Commit 01b7ec8e authored by Petr Špaček's avatar Petr Špaček Committed by Vladimír Čunát
Browse files

CI: fail build if kres-gen.lua is not up-to-date

Closes: #371
parent 1fd0a3c4
No related branches found
No related tags found
1 merge request!608Protection from DNS rebinding attack
...@@ -18,8 +18,11 @@ stages: ...@@ -18,8 +18,11 @@ stages:
build:linux:amd64: build:linux:amd64:
stage: build stage: build
script: script:
- make -k all CFLAGS=-Werror - rm daemon/lua/kres-gen.lua
- make install CFLAGS=-Werror - make -k all CFLAGS="-Werror -ggdb"
- STATUS="$(git status --untracked-files=normal --porcelain)"
- test -n "${STATUS}" && echo "${STATUS}" && echo "Build + install made working tree dirty, did you forget to update something?" && exit 2
- make install CFLAGS="-Werror -ggdb"
artifacts: artifacts:
untracked: true untracked: true
tags: tags:
...@@ -31,8 +34,11 @@ build:clang:linux:amd64: ...@@ -31,8 +34,11 @@ build:clang:linux:amd64:
stage: build stage: build
image: $CI_REGISTRY/knot/knot-resolver/ci:debian-unstable # newer Debian for newer Clang image: $CI_REGISTRY/knot/knot-resolver/ci:debian-unstable # newer Debian for newer Clang
script: script:
- CXX=clang++-5.0 CC=clang-5.0 make -k all "CFLAGS=-Werror -Wno-error=unused-command-line-argument" - rm daemon/lua/kres-gen.lua
- CXX=clang++-5.0 CC=clang-5.0 make install CFLAGS=-Werror - CXX=clang++-5.0 CC=clang-5.0 make -k all "CFLAGS=-Werror -Wno-error=unused-command-line-argument -ggdb"
- STATUS="$(git status --untracked-files=normal --porcelain)"
- test -n "${STATUS}" && echo "${STATUS}" && echo "Build + install made working tree dirty, did you forget to update something?" && exit 2
- CXX=clang++-5.0 CC=clang-5.0 make install "CFLAGS=-Werror -ggdb"
tags: tags:
- docker - docker
- linux - linux
...@@ -141,7 +147,7 @@ deckard:linux:amd64: ...@@ -141,7 +147,7 @@ deckard:linux:amd64:
except: except:
- schedules # prevent unstable test from cancelling nightly OBS build - schedules # prevent unstable test from cancelling nightly OBS build
script: script:
- MAKEFLAGS="--jobs $(nproc)" DECKARDFLAGS="-n $(nproc)" PATH="$PREFIX/sbin:$PATH" make check-integration - MAKEFLAGS="--jobs $(nproc)" DECKARDFLAGS="-n $(nproc)" PATH="$PREFIX/sbin:$PATH" make --keep-going check-integration
- MAKEFLAGS="--jobs $(nproc)" make coverage-c coverage-lua COVERAGE_STAGE=gcov-deckard - MAKEFLAGS="--jobs $(nproc)" make coverage-c coverage-lua COVERAGE_STAGE=gcov-deckard
dependencies: dependencies:
- build:linux:amd64 - build:linux:amd64
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment