Hello,

please find attached patch. it enables coverity scans.

also, couple of things need to be done within travis-ci:

1) specify daily schedule
2) specify coverity scan token (Dinko will provide it off list)


thanks!
Ilya Shipitsin
From 9c7e0bcec2629f7cf128254c1bb1e8cdccc723cb Mon Sep 17 00:00:00 2001
From: Ilya Shipitsin <chipits...@gmail.com>
Date: Fri, 2 Aug 2019 22:59:03 +0500
Subject: [PATCH] BUILD: travis-ci: enable daily Coverity scan

Coverity scan takes some time, also we are limited to 3 scans per day.
So, running it once a day seem to be good idea.
---
 .travis.yml | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index c1d7b2d11..bf4e9d3cd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -23,39 +23,61 @@ cache:
 matrix:
   include:
   - os: linux
+    if: type != cron
     compiler: gcc
     env: TARGET=linux-glibc FIFTYONEDEGREES_SRC="contrib/51d/src/trie"
   - os: linux-ppc64le
+    if: type != cron
     compiler: gcc
     env: TARGET=linux-glibc OPENSSL_VERSION=1.1.1c LABEL="linux-ppc64le"
   - os: linux
+    if: type != cron
     compiler: clang
     env: TARGET=linux-glibc OPENSSL_VERSION=1.1.1c
   - os: linux
+    if: type == cron
+    compiler: clang
+    env: TARGET=linux-glibc OPENSSL_VERSION=1.1.1c COVERITY_SCAN_PROJECT_NAME="Haproxy" COVERITY_SCAN_BRANCH_PATTERN="*" COVERITY_SCAN_NOTIFICATION_EMAIL="chipits...@gmail.com" COVERITY_SCAN_BUILD_COMMAND="make CC=clang TARGET=$TARGET $FLAGS 51DEGREES_SRC=$FIFTYONEDEGREES_SRC"
+    script:
+      - |
+        if [ ! -z ${COVERITY_SCAN_TOKEN+x} ]; then
+          make -C contrib/wurfl
+          curl -s "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh"; | bash || true
+        fi
+  - os: linux
+    if: type != cron
     compiler: clang
     env: TARGET=linux-glibc OPENSSL_VERSION=1.1.0j
   - os: linux
+    if: type != cron
     compiler: clang
     env: TARGET=linux-glibc OPENSSL_VERSION=1.0.2r
   - os: linux
+    if: type != cron
     compiler: clang
     env: TARGET=linux-glibc LIBRESSL_VERSION=2.9.2
   - os: linux
+    if: type != cron
     compiler: clang
     env: TARGET=linux-glibc LIBRESSL_VERSION=2.8.3
   - os: linux
+    if: type != cron
     compiler: clang
     env: TARGET=linux-glibc LIBRESSL_VERSION=2.7.5 EXTRA_OBJS="contrib/prometheus-exporter/service-prometheus.o"
   - os: linux
+    if: type != cron
     compiler: clang
     env: TARGET=linux-glibc BORINGSSL=yes
   - os: linux
+    if: type != cron
     compiler: clang
     env: TARGET=linux-glibc FLAGS=
   - os: osx
+    if: type != cron
     compiler: clang
     env: TARGET=osx FLAGS="USE_OPENSSL=1" OPENSSL_VERSION=1.1.1c
   - os: windows
+    if: type != cron
     install:
       - choco install bash make libssl-devel cygwin-devel gcc-core libgcc1 binutils lua-devel libpcre-devel zlib-devel --source cygwin
     script:
-- 
2.20.1

Reply via email to