#!/bin/bash # Runs unit tests, generates the binary and then runs it against sample projects # run unit tests echo "๐Ÿ Setup virtual environment" ./setup-environment.sh if [ $? -ne 0 ]; then echo "**ERROR**: failed to initialize Python Virtual Environment" && exit 1 fi # run unit tests echo "๐Ÿ”ฌ Running unit tests" ./unit-test.sh if [ $? -ne 0 ]; then echo "**ERROR**: unit tests failed" && exit 1 fi # build project echo "โš’๏ธ Building project" ./build.sh if [ $? -ne 0 ]; then echo "**ERROR**: failed to build project" && exit 1 fi echo "๐Ÿงช Running integration tests" ./integration-test.sh if [ $? -ne 0 ]; then echo "**ERROR**: integration tests failed" && exit 1 fi if hash docker then echo "๐Ÿ‹ Running container tests" ./container-test.sh if [ $? -ne 0 ]; then echo "**ERROR**: error generating jar for Graviton Ready Java tool" && exit 1 fi fi