From 7daa2822f6320801dfed09782ae46687e7c8cbb3 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Mon, 12 Feb 2018 11:27:00 +0330 Subject: [PATCH] Add Travis based Coverity trigger (#778) --- .ci/trigger-coverity.sh | 13 +++++++++++++ .travis.yml | 14 ++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .ci/trigger-coverity.sh diff --git a/.ci/trigger-coverity.sh b/.ci/trigger-coverity.sh new file mode 100644 index 000000000..e2416922e --- /dev/null +++ b/.ci/trigger-coverity.sh @@ -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 diff --git a/.travis.yml b/.travis.yml index 5516e7114..561172554 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,8 @@ env: - LDFLAGS="--coverage" - CONFIGURE_OPTS="--with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2" - NOCONFIGURE=1 + # COVERITY_SCAN_TOKEN + - secure: "MRJtVu/fQoWNwMAamvIJBCX/1SMvEuEUk/ljAif/y2/3syyWgxFGp17UGnDILdoZYyCqTM+jQciY2P0nVqbjjOAUlML4QOAalqw8kPp8iTsnHUe+KOMVrOVP6p6qAQxk1im1O41cCMkmVKvk+NXe/on5euz6LGF2laHZaOAMoes=" matrix: include: @@ -28,6 +30,7 @@ matrix: after_success: - bash .ci/run-coveralls.sh # for coveralls.io code coverage tracking - bash .ci/deploy-docs.sh + - bash .ci/trigger-coverity.sh - os: linux compiler: clang @@ -73,3 +76,14 @@ addons: - libicu-dev # for extra unicode functions - libgraphite2-dev # for extra shapers #- 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 \ No newline at end of file