2014-11-09 22:36:13 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
#
|
2016-01-08 22:52:03 +01:00
|
|
|
# Run the Coverity Scan static analyzer
|
|
|
|
|
#
|
2014-11-09 22:36:13 +01:00
|
|
|
|
|
|
|
|
rm -r cov-int
|
|
|
|
|
|
|
|
|
|
make distclean
|
|
|
|
|
|
2016-01-03 19:13:57 +01:00
|
|
|
# Reconfigure (with force) to get the latest revision from git
|
|
|
|
|
autoreconf -f
|
|
|
|
|
|
2014-11-09 22:36:13 +01:00
|
|
|
if ! ./configure ; then
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
2025-10-06 15:33:32 +02:00
|
|
|
export PATH=$PATH:contrib/cov-analysis-linux64-2024.12.1/bin
|
2014-11-09 22:36:13 +01:00
|
|
|
|
|
|
|
|
if ! cov-build --dir cov-int make; then
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
2016-01-04 11:11:40 +01:00
|
|
|
REVISION=`sh autover.sh`
|
2014-11-09 22:36:13 +01:00
|
|
|
|
2015-11-24 19:34:21 +01:00
|
|
|
tar czf snapraid-$REVISION.tgz cov-int
|
2014-11-09 22:36:13 +01:00
|
|
|
|
2015-11-24 19:34:21 +01:00
|
|
|
rm -r cov-int
|
2014-11-09 22:36:13 +01:00
|
|
|
|
2015-11-24 19:34:21 +01:00
|
|
|
echo snapraid-$REVISION.tgz ready to upload to https://scan.coverity.com/projects/1986/builds/new
|