Fix coverity pipeline

The original test didn't work if the tgz was not already in the
runner cache. This new test will fail the check if the file is missing
instead of erroring the command.
This commit is contained in:
Ian McInerney 2020-07-19 03:20:33 +01:00
parent ae45c08ce4
commit 216fd3ff9a
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,8 @@
--form project=$COVERITY_SCAN_PROJECT_NAME \
--form token=$COVERITY_SCAN_TOKEN \
--form md5=1
test "$(md5sum cov-analysis-linux64.tgz | awk '{ print $1 }')" = "$(cat cov-analysis-linux64.md5)" || (
echo " *cov-analysis-linux64.tgz" >> cov-analysis-linux64.md5
test "$(md5sum --ignore-missing -c cov-analysis-linux64.md5)" || (
echo "Downloading new Coverity Scan version"
curl --output cov-analysis-linux64.tgz https://scan.coverity.com/download/linux64 \
--form project=$COVERITY_SCAN_PROJECT_NAME \