summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Gerecke <killertofu@gmail.com>2018-06-21 14:08:40 -0700
committerJason Gerecke <killertofu@gmail.com>2018-06-28 09:42:02 -0700
commit192d67275c6621ec7debef3c6453dd2030b7cac8 (patch)
tree89ce4e3eb42e7c44905cbf21840707a3fafecee6
parent567b4d71484ec67fb6432cebd4c4048da5979a2c (diff)
downloadxf86-input-wacom-192d67275c6621ec7debef3c6453dd2030b7cac8.tar.gz
travis: Hotfix Coverity's Travis integration patch
Coverity has been triggering build errors for quite a while now, simply because their server returns a different success code after uploading than their script demands. We've notified them about this bug, but nothing seems to be happening. Lets just patch the broken code and move on with life. Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com> Acked-by: Ping Cheng <ping.cheng@wacom.com>
-rw-r--r--.travis.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index bc3f492..8135071 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -29,6 +29,7 @@ matrix:
env: BUILDTYPE="coverity", COVERITY_SCAN_PROJECT_NAME="linuxwacom/xf86-input-wacom", COVERITY_SCAN_NOTIFICATION_EMAIL="killertofu@gmail.com", COVERITY_SCAN_BUILD_COMMAND_PREPEND="", COVERITY_SCAN_BUILD_COMMAND="make", COVERITY_SCAN_BRANCH_PATTERN=".*", COVERITY_URL="https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh"
before_script:
+ - if [[ -n "$COVERITY_URL" ]]; then curl -fs "$COVERITY_URL" > coverity.sh && sed -i 's/"$status_code" != "201"/"$status_code" -lt 200 -o "$status_code" -ge 300/' coverity.sh && chmod +x coverity.sh; fi
# We don't want our CFLAGS (especially -Werror) to apply at `configure`
# time so short-circuit our environment at that moment and provide the
# flags to `make` instead. Not doing so results in an incorrect config:
@@ -38,5 +39,5 @@ before_script:
script:
- if [[ x"$TRAVIS_EVENT_TYPE" = "xcron" ]]; then export DO_COVERITY="YES"; fi
- - if [[ x"$BUILDTYPE" = "xcoverity" && x"$DO_COVERITY" = "xYES" ]]; then COVERITY_SCRIPT=$(curl -fs "$COVERITY_URL") && echo "$COVERITY_SCRIPT" | bash; fi
+ - if [[ x"$BUILDTYPE" = "xcoverity" && x"$DO_COVERITY" = "xYES" ]]; then bash ./coverity.sh; fi
- if [[ x"$BUILDTYPE" != "xcoverity" ]]; then make CFLAGS="$CFLAGS" && make check; fi