summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2020-03-02 23:46:23 +0200
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2020-03-03 03:07:54 +0200
commit404c5862fee2ae19e86a9138c07e72aa5d006f12 (patch)
treecdb2a2692d739417eb6b7c099b06994d9a50eeb0
parent342ae955bd4fe4f09c3ddf2e914daf11d40ce6a9 (diff)
downloadmetacity-404c5862fee2ae19e86a9138c07e72aa5d006f12.tar.gz
ci: add coverity job
-rw-r--r--.gitlab-ci.yml55
-rw-r--r--configure.ac2
2 files changed, 56 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3b59042d..7ee3880a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,6 @@
stages:
- build
+ - analysis
build-ubuntu:
image: ubuntu:devel
@@ -41,3 +42,57 @@ build-ubuntu:
- ./autogen.sh
- make
- make distcheck
+
+coverity:
+ image: ubuntu:devel
+ stage: analysis
+ when: manual
+ before_script:
+ - apt-get update
+ - apt-get install -q -y --no-install-recommends
+ autoconf-archive
+ automake
+ autopoint
+ build-essential
+ ca-certificates
+ clang
+ curl
+ gettext
+ gsettings-desktop-schemas-dev
+ libcanberra-gtk3-dev
+ libglib2.0-dev
+ libgtk-3-dev
+ libgtop2-dev
+ libice-dev
+ libpango1.0-dev
+ libsm-dev
+ libstartup-notification0-dev
+ libtool
+ libvulkan-dev
+ libx11-dev
+ libxcomposite-dev
+ libxcursor-dev
+ libxdamage-dev
+ libxext-dev
+ libxfixes-dev
+ libxinerama-dev
+ libxrandr-dev
+ libxrender-dev
+ libxt-dev
+ yelp-tools
+ zenity
+ script:
+ - curl https://scan.coverity.com/download/linux64
+ --data "token=$COVERITY_TOKEN&project=metacity"
+ --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=metacity
+ only:
+ - master
diff --git a/configure.ac b/configure.ac
index 4d6bc63f..854df619 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,7 +18,7 @@ dnl **************************************************************************
dnl Initialize autoconf
dnl **************************************************************************
-AC_INIT([metacity], [m_version], [m_bugzilla_url])
+AC_INIT([metacity], m_version, [m_bugzilla_url])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([src/core/display.c])
AC_CONFIG_MACRO_DIR([m4])