]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
ci: add -Werror to CFLAGS, added clang build target
authorMarek Vavruša <mvavrusa@cloudflare.com>
Tue, 9 Jan 2018 17:38:10 +0000 (09:38 -0800)
committerMarek Vavruša <mvavrusa@cloudflare.com>
Thu, 11 Jan 2018 18:57:37 +0000 (10:57 -0800)
.gitlab-ci.yml
ci/Dockerfile

index 5b6bed870b7139ec40231d8f56f64d49029136a4..13bf2b06e5c4caa47e20be094b8a8e18d2963337 100644 (file)
@@ -15,8 +15,8 @@ stages:
 build:linux:amd64:
   stage: build
   script:
-    - PREFIX=$(pwd)/.local make -k all
-    - PREFIX=$(pwd)/.local make install
+    - PREFIX=$(pwd)/.local make -k all CFLAGS=-Werror
+    - PREFIX=$(pwd)/.local make install CFLAGS=-Werror
   artifacts:
     untracked: true
   tags:
@@ -24,6 +24,16 @@ build:linux:amd64:
     - linux
     - amd64
 
+build:clang:linux:amd64:
+  stage: build
+  script:
+    - CXX=clang++ CC=clang PREFIX=$(pwd)/.local make -k all CFLAGS=-Werror
+    - CXX=clang++ CC=clang PREFIX=$(pwd)/.local make install CFLAGS=-Werror
+  tags:
+    - docker
+    - linux
+    - amd64
+
 lint:lua:
   stage: test
   dependencies: []  # do not download build artifacts
index dcf96da93b48222d72f129bd6545c91438bcf0dc..6c0427c73a5580bab4459d00699a48d8bcb9951b 100644 (file)
@@ -69,3 +69,6 @@ RUN luarocks install luacov
 
 # LuaJIT binary for stand-alone scripting
 RUN apt-get install -y -qqq luajit
+
+# clang for kresd CI
+RUN apt-get install -y -qqq clang