]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: travis-ci: enable daily Coverity scan
authorIlya Shipitsin <chipitsine@gmail.com>
Fri, 2 Aug 2019 17:59:03 +0000 (22:59 +0500)
committerWilly Tarreau <w@1wt.eu>
Tue, 6 Aug 2019 04:41:03 +0000 (06:41 +0200)
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

index c1d7b2d11a57be16c6cb5b972a18cd2150fa8c56..bf4e9d3cd77b2856431914d388c3bb3c818ca329 100644 (file)
@@ -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="chipitsine@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: