[gnome-applets] ci: add coverity job



commit 86ac62b0d0bcb8e875d7597a47974137178e1583
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Mar 3 03:37:36 2020 +0200

    ci: add coverity job

 .gitlab-ci.yml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 configure.ac   |  2 +-
 2 files changed, 57 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 475cebbe1..91e2c3b1d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,6 @@
 stages:
   - build
+  - analysis
 
 build-ubuntu:
   image: ubuntu:devel
@@ -42,3 +43,58 @@ build-ubuntu:
     - ./autogen.sh --disable-Werror
     - make
     - make distcheck
+
+coverity:
+  image: ubuntu:devel
+  stage: analysis
+  when: manual
+  before_script:
+    - apt-get update
+    - apt-get install -q -y --no-install-recommends
+                      adwaita-icon-theme
+                      autoconf-archive
+                      automake
+                      autopoint
+                      build-essential
+                      ca-certificates
+                      clang
+                      curl
+                      docbook-to-man
+                      docbook-xsl
+                      gettext
+                      gnome-settings-daemon-dev
+                      intltool
+                      libcpufreq-dev
+                      libdbus-1-dev
+                      libdbus-glib-1-dev
+                      libglib2.0-dev
+                      libgtk-3-dev
+                      libgtop2-dev
+                      libgucharmap-2-90-dev
+                      libgweather-3-dev
+                      libnotify-dev
+                      libpanel-applet-dev
+                      libpolkit-gobject-1-dev
+                      libtracker-sparql-2.0-dev
+                      libtool
+                      libupower-glib-dev
+                      libwnck-3-dev
+                      libx11-dev
+                      libxml2-dev
+                      xsltproc
+                      yelp-tools
+  script:
+    - curl https://scan.coverity.com/download/linux64
+      --data "token=$COVERITY_TOKEN&project=gnome-applets"
+      --output /tmp/coverity_tool.tgz
+    - tar zxf /tmp/coverity_tool.tgz
+    - CC=clang ./autogen.sh --disable-Werror
+    - ./cov-analysis-linux64-*/bin/cov-build --dir cov-int make
+    - tar czf cov-int.tar.gz cov-int
+    - curl --form token=$COVERITY_TOKEN
+      --form email=alberts muktupavels gmail com
+      --form file=@cov-int.tar.gz
+      --form version="$(autoconf --trace='AC_INIT:$2')-$CI_COMMIT_SHORT_SHA"
+      https://scan.coverity.com/builds?project=gnome-applets
+  only:
+    - master
diff --git a/configure.ac b/configure.ac
index b24226101..036314c62 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,7 +18,7 @@ dnl **************************************************************************
 dnl Initialize autoconf
 dnl **************************************************************************
 
-AC_INIT([gnome-applets], [ga_version], [ga_bugzilla_url])
+AC_INIT([gnome-applets], ga_version, [ga_bugzilla_url])
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_MACRO_DIR([m4])
 AC_CONFIG_AUX_DIR([build-aux])


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]