netdata/packaging: fix coverity problem in travis (2 issues) (#6743)
1) Add slack notification when things fail, we dont want to silently fail it 2) Change the tarball version, seems we now downloading a different version
Paul Emm. Katsoulakis committed
Aug 30, 2019 at 12:52 UTC
413f578b6d66f0b943f476ab9c0d9c7bda3b4c52
2 files changed
+5
-2
.travis.yml
+4
-1
@@ -533,7 +533,10 @@ jobs:
533
name: Run coverity scan
534
# Just notify people that Nightly ops triggered, use the first step as a hook to do that
535
before_script: post_message "TRAVIS_MESSAGE" "Starting nightly operations" "${NOTIF_CHANNEL}"
536
- script: ./coverity-install.sh && ./coverity-scan.sh || echo "Coverity failed :("
536
+ script: ./coverity-install.sh && ./coverity-scan.sh
537
+ after_failure: post_message "TRAVIS_MESSAGE" "<!here> Coverity nightly run has failed" "${NOTIF_CHANNEL}"
538
+ env:
539
+ - ALLOW_SOFT_FAILURE_HERE=true
540
541
- name: Kickstart files integrity testing (extended)
542
script: ./tests/installer/checksums.sh
coverity-install.sh
+1
-1
@@ -26,7 +26,7 @@ mkdir -p "${WORKDIR}"
26
curl -SL --data "token=${token}&project=${REPOSITORY}" https://scan.coverity.com/download/linux64 > "${WORKDIR}/coverity_tool.tar.gz"
27
if [ -f "${WORKDIR}/coverity_tool.tar.gz" ]; then
28
tar -x -C "${WORKDIR}" -f "${WORKDIR}/coverity_tool.tar.gz"
29
- sudo mv "${WORKDIR}/cov-analysis-linux64-2017.07" /opt/coverity
29
+ sudo mv "${WORKDIR}/cov-analysis-linux64-2019.03" /opt/coverity
30
export PATH=${PATH}:/opt/coverity/bin/
31
else
32
echo "Failed to download coverity tool tarball!"