updated coverity scan to detect netdata version
Costa Tsaousis (ktsaou) committed
Mar 18, 2017 at 19:40 UTC
e776d228ede4cb5bb0f942a6f3a45f7b9a5971ae
1 file changed
+5
-2
coverity-scan.sh
+5
-2
@@ -18,6 +18,9 @@ covbuild="$(which cov-build 2>/dev/null || command -v cov-build 2>/dev/null)"
18
echo "The command ${covbuild} is not executable. Save command the full filename of cov-build in .coverity-build" && \
19
exit 1
20
21
+version="$(cat config.h | grep "^#define PACKAGE_VERSION" | cut -d '"' -f 2)"
22
+echo >&2 "Working on netdata version: ${version}"
23
+
24
echo >&2 "Cleaning up old builds..."
25
make clean || exit 1
26
@@ -34,6 +37,6 @@ tar czvf netdata-coverity-analysis.tgz cov-int || exit 1
37
curl --form token="${token}" \
38
--form email=costa@tsaousis.gr \
39
--form file=@netdata-coverity-analysis.tgz \
37
- --form version="1.6.0rc1" \
38
- --form description="Description" \
40
+ --form version="${version}" \
41
+ --form description="netdata, real-time performance monitoring, done right." \
42
https://scan.coverity.com/builds?project=firehol%2Fnetdata