Skip to content

Commit

Permalink
Merge pull request #17 from ryanrigato/dev
Browse files Browse the repository at this point in the history
unit tests in vm
  • Loading branch information
rrigato authored May 26, 2024
2 parents 279cb05 + a70284f commit f8dc72d
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions scripts/tvratings_build_test.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,2 +1,27 @@
echo "to do"
echo $AWS_ACCOUNT_ID
set -e


export BUCKET_NAME="${PROJECT_NAME}-app-artifacts"
export DEPLOYMENT_PACKAGE="${PROJECT_NAME}_deployment_package.zip"


python -m venv avenv

source avenv/bin/activate
pip install -r requirements/requirements-dev.txt

secret_scan_results=$(detect-secrets scan | \
python -c "import sys, json; print(json.load(sys.stdin)['results'])" )

# static scan for security credentials that terminates if any secrets are found
if [ "${secret_scan_results}" != "{}" ]; then
echo "detect-secrets scan failed"
exit 125
fi


python -m unittest

deactivate

echo "--------beginning bundle--------"

0 comments on commit f8dc72d

Please sign in to comment.