cppcheck/tools/run-coverity.sh

25 lines
575 B
Bash

#!/bin/bash
PATH=$PATH:/home/danielmarjamaki/cov-analysis-linux64-2019.03/bin
cd /home/danielmarjamaki/cppcheck-cov
git pull
echo Analyze
make clean
nice cov-build --dir cov-int make
echo Compressing
tar czvf cppcheck.tgz cov-int
echo Upload
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