aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-09-25 15:23:26 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-10-19 22:01:28 +0200
commit67ba68337b7e60f45249046e19c57d4046ff3c35 (patch)
tree8b7a3cff99253c5a71325353bf40ae5eef48227b
parent1cd72ee214dea387ee76c5fb03315e3db94ff264 (diff)
downloadlibssh-master-static-analysis.tar.gz
libssh-master-static-analysis.tar.xz
libssh-master-static-analysis.zip
gitlab-ci: Add static analysis with csbuildmaster-static-analysis
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--.gitlab-ci.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6e134339..74d69fd9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -85,6 +85,26 @@ fedora/undefined-sanitizer:
paths:
- obj/
+fedora/csbuild:
+ image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
+ script:
+ - test -n "$CI_COMMIT_BEFORE_SHA" &&
+ csbuild
+ --build-dir=obj-csbuild
+ --prep-cmd="cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPICKY_DEVELOPER=ON -DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON -DFUZZ_TESTING=ON @SRCDIR@"
+ --build-cmd "make -j$(nproc)"
+ --git-commit-range $CI_COMMIT_BEFORE_SHA..$CI_COMMIT_SHA
+ --git-bisect --print-current --print-fixed
+ tags:
+ - shared
+ except:
+ - tags
+ artifacts:
+ expire_in: 1 week
+ when: on_failure
+ paths:
+ - obj-csbuild/
+
# That is a specific runner that we cannot enable universally.
# We restrict it to builds under the $BUILD_IMAGES_PROJECT project.
freebsd/x86_64: