Skip to content

Instantly share code, notes, and snippets.

@moshekaplan
Created August 5, 2019 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moshekaplan/1d9a70ea7b30c62d83a0f706fabc9fee to your computer and use it in GitHub Desktop.
Save moshekaplan/1d9a70ea7b30c62d83a0f706fabc9fee to your computer and use it in GitHub Desktop.
Aircrack Coverity build
#!/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=SANITIZED@gmail.com \
--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