summaryrefslogtreecommitdiffstats
path: root/coverity-scan.sh
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-03-18 19:40:18 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-03-18 19:40:18 +0200
commite776d228ede4cb5bb0f942a6f3a45f7b9a5971ae (patch)
treeb50603946d699e0aa729cab402fb7cb09e21ae92 /coverity-scan.sh
parentacd9eb6da12aa1baa911bce78612584c6cc6c79a (diff)
updated coverity scan to detect netdata version
Diffstat (limited to 'coverity-scan.sh')
-rwxr-xr-xcoverity-scan.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/coverity-scan.sh b/coverity-scan.sh
index c293805a4a..8ea4334531 100755
--- a/coverity-scan.sh
+++ b/coverity-scan.sh
@@ -18,6 +18,9 @@ covbuild="$(which cov-build 2>/dev/null || command -v cov-build 2>/dev/null)"
echo "The command ${covbuild} is not executable. Save command the full filename of cov-build in .coverity-build" && \
exit 1
+version="$(cat config.h | grep "^#define PACKAGE_VERSION" | cut -d '"' -f 2)"
+echo >&2 "Working on netdata version: ${version}"
+
echo >&2 "Cleaning up old builds..."
make clean || exit 1
@@ -34,6 +37,6 @@ tar czvf netdata-coverity-analysis.tgz cov-int || exit 1
curl --form token="${token}" \
--form email=costa@tsaousis.gr \
--form file=@netdata-coverity-analysis.tgz \
- --form version="1.6.0rc1" \
- --form description="Description" \
+ --form version="${version}" \
+ --form description="netdata, real-time performance monitoring, done right." \
https://scan.coverity.com/builds?project=firehol%2Fnetdata