cppcheck/tools/run-coverity.sh

25 lines
592 B
Bash
Raw Normal View History

#!/bin/bash
2022-02-18 19:55:34 +01:00
PATH=$PATH:/home/danielmarjamaki/cov-analysis-linux64-2021.12.1/bin
cd /home/danielmarjamaki/cppcheck-devinfo || exit 1
2018-05-05 15:23:35 +02:00
git pull
echo Analyze
2018-05-05 15:23:35 +02:00
make clean
nice cov-build --dir cov-int make
echo Compressing
tar czvf cppcheck.tgz cov-int
echo Upload
2018-05-05 15:23:35 +02:00
curl --insecure \
--form token=e74RRnWR6BVsn5LKdclfcA \
--form email=daniel.marjamaki@gmail.com \
--form file=@cppcheck.tgz \
--form version=$(git log -1 --format=oneline | sed -r 's/([a-f0-9]{7}).*/\1/') \
--form description="Development" \
https://scan.coverity.com/builds?project=cppcheck
echo Done
rm -rf cov-int