]> git.zerfleddert.de Git - proxmark3-svn/blob - covbuild.sh
CHG; travis CI and multi platform part..
[proxmark3-svn] / covbuild.sh
1 #!/bin/bash
2
3 ## 2016-01-16, Iceman
4 ## build script for Coverity Scan of the proxmark3 source code
5
6 ## clean up pre-compiled objects.
7 make clean
8
9 ## coverity build
10 cov-build --dir cov-int make all
11
12 ## delete all previous tarballs
13 rm proxmark3.all.*.tgz
14
15 ##
16 VERSION="0.1.`date --date now +%H%M`"
17 TODAY="`date --date now +%Y%m%d.%H%M`"
18 DESCNAME="autoMango.$TODAY"
19 FILENAME=proxmark3.all.$TODAY.tgz
20
21 ## create tarball
22 tar cfz $FILENAME cov-int
23 echo "Coverity build file is ready"
24
25 ## clean up build folders
26 rm -rf cov-int
27 echo "Coverity build cleaned"
28
29 ## upload tarball to Coverity.com
30 curl --form token=dY262wIFmfkcRkA5Pyw0eA \
31 --form email=herrmann1001@gmail.com \
32 --form file=@$FILENAME \
33 --form version="$VERSION" \
34 --form description="$DESCNAME" \
35 https://scan.coverity.com/builds?project=proxmark3_iceman_fork
36 echo "tarball uploaded to Coverity for analyse"
Impressum, Datenschutz