]>
Commit | Line | Data |
---|---|---|
edff4a41 | 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 | |
f1f7430a | 10 | cov-build --dir cov-int make all |
edff4a41 | 11 | |
b9e8854a | 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 | ||
edff4a41 | 21 | ## create tarball |
b9e8854a | 22 | tar cfz $FILENAME cov-int |
edff4a41 | 23 | echo "Coverity build file is ready" |
24 | ||
edff4a41 | 25 | ## clean up build folders |
26 | rm -rf cov-int | |
27 | echo "Coverity build cleaned" | |
28 | ||
29 | ## upload tarball to Coverity.com | |
b9e8854a | 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" |