mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-11 01:55:38 +08:00
7d157606ee
Stop assuming that bash is in /bin, and that perl and python are in /usr/bin, etc. Instead, use env command to find these commands in the path.
31 lines
873 B
Bash
Executable file
31 lines
873 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
. .coverity.conf || exit 1
|
|
|
|
pre_submit_hook
|
|
|
|
## delete all previous tarballs
|
|
rm -f proxmark3.all.*.tgz proxmark3.all.*.log
|
|
|
|
TODAY="$(date --date now +%Y%m%d.%H%M)"
|
|
VERSION="0.1.$TODAY"
|
|
DESCNAME="manual_by_$NICKNAME.$TODAY.$(git describe --dirty --always)"
|
|
FILENAME="proxmark3.all.$TODAY.tgz"
|
|
LOGFILENAME="${FILENAME/.tgz/.log}"
|
|
|
|
## create tarball
|
|
tar cfz "$FILENAME" "$COVDIR" || exit $?
|
|
echo "Coverity build file is ready"
|
|
|
|
## upload tarball to Coverity.com
|
|
curl --progress-bar --fail \
|
|
--form token="$COVTOKEN" \
|
|
--form email="$COVLOGIN" \
|
|
--form file="@$FILENAME" \
|
|
--form version="$VERSION" \
|
|
--form description="$DESCNAME" \
|
|
https://scan.coverity.com/builds?project=Proxmark3+RRG+Iceman+repo | tee -a "${LOGFILENAME}" ; test "${PIPESTATUS[0]}" -eq 0 || exit $?
|
|
echo "tarball uploaded to Coverity for analyse"
|
|
|
|
post_submit_hook
|