]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
gitlabci: run lint on test files as well
authorTomas Krizek <tomas.krizek@nic.cz>
Thu, 21 Feb 2019 15:20:22 +0000 (16:20 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 12 Mar 2019 09:43:36 +0000 (10:43 +0100)
.gitlab-ci.yml

index 1c57ef01fc48a5221c2b46cbd9ff4de03b1cd05b..c5e4b251933947ff397501ca04346a3dd730674e 100644 (file)
@@ -133,9 +133,6 @@ kres-gen:
 
 lint:tidy:
   <<: *test
-  before_script: []
-  tags:
-    - docker
   script:
     - ninja -C build_ci* tidy
 
@@ -146,10 +143,10 @@ lint:pedantic:
     - linux
     - amd64
   script:
-    - meson build_pedantic_gcc -Dwerror=true -Dc_args='-Wpedantic'
+    - meson build_pedantic_gcc -Dwerror=true -Dc_args='-Wpedantic' -Dpostinstall_tests=enabled
     - ninja -C build_pedantic_gcc
     - >
-      CC=clang CXX=clang++ meson build_pedantic_clang -Dwerror=true -Dc_args='
+      CC=clang CXX=clang++ meson build_pedantic_clang -Dwerror=true -Dpostinstall_tests=enabled -Dc_args='
       -Wpedantic -Wno-newline-eof -Wno-gnu-zero-variadic-macro-arguments -Wno-gnu-folding-constant'
     - ninja -C build_pedantic_clang
 
@@ -175,7 +172,7 @@ lint:scan-build:
   script:
     - export SCANBUILD="scan-build --status-bugs -no-failure-reports $(./scripts/get-scanbuild-args.sh)"
     - ninja -C build_ci* scan-build || true
-    - test "$(ls build_ci*/meson-logs/scanbuild/*/report-*.html | wc -l)" = 14 # we have this many errors ATM :-)
+    - test "$(ls build_ci*/meson-logs/scanbuild/*/report-*.html | wc -l)" = 29 # we have this many errors ATM :-)
 
 docker:
   stage: test