]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
.gitlab-ci.yml: added static analyzers run
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Tue, 16 May 2017 13:12:06 +0000 (15:12 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 16 May 2017 20:49:29 +0000 (22:49 +0200)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
.gitlab-ci.yml

index 6fa98985dc54ee8927f1f239b968c6e9755362ce..ad6c24fd54922119876a5be10fbeee2cdbc52ec4 100644 (file)
@@ -1,5 +1,9 @@
 image: centos:7
 
+variables:
+  BUILD_IMAGES_PROJECT: gnutls/build-images
+  FEDORA_BUILD: buildenv-f25
+
 before_script:
  - yum install -y git make autoconf libtool automake gettext-devel glibc-devel gcc valgrind libasan-static libgcc.i686 glibc-devel.i686
 
@@ -55,3 +59,20 @@ Build and Check with asan:
   - shared
   except:
   - tags
+Build with static-analyzers:
+  image: fedora:25
+  script:
+  - yum install -y gmp-devel clang compiler-rt cppcheck clang-analyzer
+  - ./.bootstrap
+  - scan-build ./configure --disable-documentation
+  - scan-build --status-bugs -o scan-build-lib make -j$(nproc)
+  tags:
+  - shared
+  except:
+  - tags
+  artifacts:
+    expire_in: 1 week
+    when: on_failure
+    paths:
+      - scan-build-lib/*
+