Add Travis based Coverity trigger (#778)

This commit is contained in:
Ebrahim Byagowi 2018-02-12 11:27:00 +03:30 committed by GitHub
parent 7747bdb11b
commit 7daa2822f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 0 deletions

13
.ci/trigger-coverity.sh Normal file
View File

@ -0,0 +1,13 @@
#!/bin/bash
set -x
set -o errexit -o nounset
if test "x$TRAVIS_EVENT_TYPE" != x"cron"; then exit; fi
BRANCH="$TRAVIS_BRANCH"
if test "x$BRANCH" != xmaster; then exit; fi
git fetch --unshallow
git remote add upstream "https://$GH_TOKEN@github.com/harfbuzz/harfbuzz.git"
git push -q upstream master:coverity_scan

View File

@ -11,6 +11,8 @@ env:
- LDFLAGS="--coverage" - LDFLAGS="--coverage"
- CONFIGURE_OPTS="--with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2" - CONFIGURE_OPTS="--with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2"
- NOCONFIGURE=1 - NOCONFIGURE=1
# COVERITY_SCAN_TOKEN
- secure: "MRJtVu/fQoWNwMAamvIJBCX/1SMvEuEUk/ljAif/y2/3syyWgxFGp17UGnDILdoZYyCqTM+jQciY2P0nVqbjjOAUlML4QOAalqw8kPp8iTsnHUe+KOMVrOVP6p6qAQxk1im1O41cCMkmVKvk+NXe/on5euz6LGF2laHZaOAMoes="
matrix: matrix:
include: include:
@ -28,6 +30,7 @@ matrix:
after_success: after_success:
- bash .ci/run-coveralls.sh # for coveralls.io code coverage tracking - bash .ci/run-coveralls.sh # for coveralls.io code coverage tracking
- bash .ci/deploy-docs.sh - bash .ci/deploy-docs.sh
- bash .ci/trigger-coverity.sh
- os: linux - os: linux
compiler: clang compiler: clang
@ -73,3 +76,14 @@ addons:
- libicu-dev # for extra unicode functions - libicu-dev # for extra unicode functions
- libgraphite2-dev # for extra shapers - libgraphite2-dev # for extra shapers
#- libgirepository1.0-dev # for gobject-introspection #- libgirepository1.0-dev # for gobject-introspection
addons:
coverity_scan:
project:
name: harfbuzz/harfbuzz
version: 1.0
description: HarfBuzz OpenType text shaping engine
notification_email: harfbuzz@lists.freedesktop.org
build_command_prepend: ./autogen.sh --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2
build_command: make
branch_pattern: coverity_scan