Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion ci_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,18 @@ then
exit 1
fi

trap 'STATE="failure"; status_update' ERR

STATE="pending"
status_update

echo "Running tests"

set +e
./scripts/run_tests.sh 2>&1 | tee test_logs.out
TEST_RESULTS=$?
set -e

echo "Finished running tests, uploading results to S3"

aws s3 cp --content-type 'text/plain' test_logs.out s3://aws-nitro-enclaves-cli/${LOGS_PATH}

Expand All @@ -58,4 +63,8 @@ if [[ "${TEST_RESULTS}" != "0" ]];then
STATE="failure"
fi

echo "Updating job status to ${STATE}"

status_update

echo "Done"
Loading