[metacity/coverity] ci: add coverity job



commit e154b738602a039112223a644390430b6ceb9b42
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Mar 2 23:46:23 2020 +0200

    ci: add coverity job

 .gitlab-ci.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3b59042d..1e98d4c6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,6 @@
 stages:
   - build
+  - analysis
 
 build-ubuntu:
   image: ubuntu:devel
@@ -41,3 +42,48 @@ 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
+                      clang
+                      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 coverity_tool.tgz
+    - tar zxf 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


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