[gnome-panel] ci: add coverity job



commit 29a37c8df6008e03c41847c5a83615f5fc406c70
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Mar 3 03:35:59 2020 +0200

    ci: add coverity job

 .gitlab-ci.yml | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 configure.ac   |  2 +-
 2 files changed, 59 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3572a4bae..a49328306 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,6 @@
 stages:
   - build
+  - analysis
 
 build-ubuntu:
   image: ubuntu:devel
@@ -44,3 +45,60 @@ build-ubuntu:
     - ./autogen.sh --disable-Werror
     - make
     - make distcheck
+
+coverity:
+  image: ubuntu:devel
+  stage: analysis
+  when: manual
+  before_script:
+    - export DEBIAN_FRONTEND=noninteractive
+    - apt-get update
+    - apt-get install -q -y --no-install-recommends
+                      autoconf-archive
+                      automake
+                      autopoint
+                      build-essential
+                      ca-certificates
+                      clang
+                      curl
+                      evolution-data-server-dev
+                      gettext
+                      gtk-doc-tools
+                      libcairo2-dev
+                      libdconf-dev
+                      libecal2.0-dev
+                      libedataserver1.2-dev
+                      libgdk-pixbuf2.0-dev
+                      libgdm-dev
+                      libglib2.0-dev
+                      libgnome-desktop-3-dev
+                      libgnome-menu-3-dev
+                      libgtk-3-dev
+                      libgweather-3-dev
+                      libpango1.0-dev
+                      libpolkit-gobject-1-dev
+                      libsm-dev
+                      libsystemd-dev
+                      libtool
+                      libwnck-3-dev
+                      libx11-dev
+                      libxau-dev
+                      libxi-dev
+                      libxrandr-dev
+                      pkg-config
+                      yelp-tools
+  script:
+    - curl https://scan.coverity.com/download/linux64
+      --data "token=$COVERITY_TOKEN&project=gnome-panel"
+      --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-panel
+  only:
+    - master
diff --git a/configure.ac b/configure.ac
index c4cd25498..e13cb20bb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,7 +18,7 @@ dnl **************************************************************************
 dnl Initialize autoconf
 dnl **************************************************************************
 
-AC_INIT([gnome-panel], [gp_version], [gp_bugzilla_url])
+AC_INIT([gnome-panel], gp_version, [gp_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]