add coverity build and upload script
This commit is contained in:
parent
681e5fcdfc
commit
2de05c4d3e
28
coverity.sh
Executable file
28
coverity.sh
Executable file
@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ $# -lt 3 ]
|
||||
then
|
||||
echo "usage is: ${0##*/} <path to coverity scan> <path to libtommath include files> <path to libtommath.a>"
|
||||
echo "e.g. \"${0##*/} \"/usr/local/bin/coverity\" \"/path/to/libtommath\" /path/to/libtommath/libtommath.a\""
|
||||
exit -1
|
||||
fi
|
||||
|
||||
PATH=$PATH:$1/bin
|
||||
|
||||
make clean
|
||||
CFLAGS=" -O2 -DUSE_LTM -DLTM_DESC -I${2}" EXTRALIBS="${3}" cov-build --dir cov-int make -f makefile -j3 IGNORE_SPEED=1 1>gcc_1.txt
|
||||
|
||||
# zipup everything
|
||||
tar caf libtomcrypt.lzma cov-int
|
||||
|
||||
mytoken=$(cat .coverity_token)
|
||||
mymail=$(cat .coverity_mail)
|
||||
myversion=$(git describe --dirty)
|
||||
|
||||
curl --form project=libtomcrypt \
|
||||
--form token=${mytoken} \
|
||||
--form email=${mymail} \
|
||||
--form file=@libtomcrypt.lzma \
|
||||
--form version='"${myversion}"' \
|
||||
--form description='"libtomcrypt version ${myversion}"' \
|
||||
https://scan.coverity.com/builds?project=libtomcrypt
|
Loading…
Reference in New Issue
Block a user