Created
August 5, 2019 00:56
-
-
Save moshekaplan/1d9a70ea7b30c62d83a0f706fabc9fee to your computer and use it in GitHub Desktop.
Aircrack Coverity build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PROJECT_DIR="/home/moshe/Desktop/aircrack-ng" | |
COV_BUILD="/home/moshe/Downloads/cov-analysis-linux64-7.6.0/bin/cov-build" | |
PROJECT_NAME="aircrack-ng" | |
BUILD_DIR="/home/moshe/Desktop/aircrack-ng_cov/cov-int" | |
TAR_DIR="/home/moshe/Desktop/aircrack-ng_cov/" | |
BUILD_CMD="make sqlite=true experimental=true pcre=true -j 4" | |
# Prepare to build commands | |
cd "$PROJECT_DIR" | |
make clean > /dev/null | |
svn update > /dev/null | |
VERSION_INFO=$(svnversion) | |
# Only submit new builds: | |
if [ ! -e "${TAR_DIR}/${PROJECT_NAME}_r${VERSION_INFO}.tgz" ]; then | |
# Clean the old coverity build dir | |
if [ -d "$BUILD_DIR" ]; then | |
rm -rf "$BUILD_DIR" | |
fi | |
# Build the project | |
$COV_BUILD --dir "$BUILD_DIR" $BUILD_CMD | |
tar czvf ${TAR_DIR}/${PROJECT_NAME}_r${VERSION_INFO}.tgz -C ${TAR_DIR} cov-int | |
curl --form token=SANITIZED \ | |
--form [email protected] \ | |
--form file=@${TAR_DIR}/${PROJECT_NAME}_r${VERSION_INFO}.tgz \ | |
--form version="r${VERSION_INFO}" \ | |
--form description="Automated daily build" \ | |
https://scan.coverity.com/builds?project=Aircrack-ng | |
else | |
echo "${PROJECT_NAME}_r${VERSION_INFO}.tgz" "already submitted" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment