[lxc-devel] [lxc/master] [WIP]: test Coverity scan integration

brauner on Github lxc-bot at linuxcontainers.org
Mon Dec 4 22:42:32 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20171204/b5d8068d/attachment.bin>
-------------- next part --------------
From a869f94b399098c147e04118423d652ddedcd4ea Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Mon, 4 Dec 2017 23:41:45 +0100
Subject: [PATCH] [WIP]: test Coverity scan integration

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 .travis.yml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index 758f2ea3a..28d6029ce 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,7 +2,11 @@ language: c
 compiler:
  - gcc
  - clang
+env:
+  global:
+   - secure: "HRhoQBAke8QGGm8C8qH8cJ/vOB8x+ouDcKVL7iw6K6gLFBqSNF0Ikr/71lxof1nI2T3dk8shH5vv1i0OFhT2obHSQSYjs0fdO/B+4K/PXsj2BCmVtSketFK0xljU7RXzL+kS9V2A4R0SERygs2XahmbU0peePS2G+DbLTkWoxS8="
 before_install:
+ - echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
  - sudo add-apt-repository ppa:ubuntu-lxc/daily -y
  - sudo apt-get update -qq
  - sudo apt-get install -qq libapparmor-dev libcap-dev libseccomp-dev python3-dev python3-setuptools docbook2x libgnutls-dev liblua5.2-dev libselinux1-dev libcgmanager-dev
@@ -18,3 +22,12 @@ notifications:
     recipients:
       - lxc-devel at lists.linuxcontainers.org
   webhooks: https://linuxcontainers.org/webhook-lxcbot/
+addons:
+  coverity_scan:
+    project:
+      name: "lxc/lxc"
+      description: "LXC - Linux Containers https://linuxcontainers.org/lxc"
+    notification_email: lxc-devel at lists.linuxcontainers.org
+    build_command_prepend: "./autogen.sh && mkdir build && cd build && ../configure --enable-tests --with-distro=unknown"
+    build_command: "make -j4"
+    branch_pattern: coverity_scan


More information about the lxc-devel mailing list