Tools: Added script that runs coverity and uploads the result

This commit is contained in:
Daniel Marjamäki 2018-01-06 11:58:46 +01:00
parent 943693acfb
commit 1ad797d220
1 changed files with 22 additions and 0 deletions

22
tools/run-coverity.sh Normal file
View File

@ -0,0 +1,22 @@
#!/bin/bash
PATH=$PATH:/home/danielmarjamaki/cov-analysis-linux64-2017.07/bin
cd /home/danielmarjamaki/cppcheck-cov
make clean
echo Analyze
nice cov-build --dir cov-int make
echo Compressing
tar czvf cppcheck.tgz cov-int
echo Upload
curl --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