From 8f936fbe6634d31dc8d6751fd11fa6201d47eb74 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Mon, 20 Feb 2017 13:13:19 +0100 Subject: .gitlab-ci.yml: added cppcheck run This adds a basic static analysis of the source code. Signed-off-by: Nikos Mavrogiannopoulos --- .gitlab-ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3a17089691..a13bcddc36 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -67,6 +67,27 @@ syntax-check/Fedora/x86_64: except: - tags +cppcheck/Fedora/x86_64: + stage: stage1-testing + image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD + script: + - ./configure --prefix=/usr --libdir=/usr/lib64 --disable-cxx --disable-valgrind-tests --disable-non-suiteb-curves --disable-maintainer-mode --disable-guile + - cppcheck --force -q -Ilib/include -Igl/ -Ilib/ -I. --error-exitcode=1 lib/ -i lib/unistring + - cppcheck --force -q -Ilib/include -Igl/ -Ilibdane/ -I. --error-exitcode=1 libdane/ + tags: + - shared + except: + - tags + dependencies: + - init/Fedora/x86_64 + artifacts: + expire_in: 1 week + when: on_failure + paths: + - ./*.log + - tests/*.log + - tests/*/*.log + ################################################## # Stage 2, documentation, and advanced checks ################################################## -- cgit v1.2.1