diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-02-20 13:13:19 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-02-20 16:34:04 +0100 |
commit | 8f936fbe6634d31dc8d6751fd11fa6201d47eb74 (patch) | |
tree | 00d0d2cc0f6884686b300b33286bea8eb38e7826 | |
parent | 3bb1167cc34ec6bea72aa08acd1a2f541669cd1f (diff) | |
download | gnutls-8f936fbe6634d31dc8d6751fd11fa6201d47eb74.tar.gz |
.gitlab-ci.yml: added cppcheck run
This adds a basic static analysis of the source code.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r-- | .gitlab-ci.yml | 21 |
1 files changed, 21 insertions, 0 deletions
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 ################################################## |