2019-11-30 15:36:27 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
#
|
2020-01-29 22:37:11 +00:00
|
|
|
# Run steps
|
2019-11-30 15:36:27 +00:00
|
|
|
#
|
|
|
|
|
2020-01-29 22:37:11 +00:00
|
|
|
source /steps/activate.sh
|
|
|
|
source /steps/run_tests.sh
|
|
|
|
source /steps/return_license.sh
|
2019-11-30 15:36:27 +00:00
|
|
|
|
2020-09-27 19:19:29 +00:00
|
|
|
#
|
|
|
|
# Instructions for debugging
|
|
|
|
#
|
|
|
|
|
|
|
|
if [[ $TEST_RUNNER_EXIT_CODE -gt 0 ]]; then
|
|
|
|
echo ""
|
|
|
|
echo "###########################"
|
|
|
|
echo "# Failure #"
|
|
|
|
echo "###########################"
|
|
|
|
echo ""
|
|
|
|
echo "Please note that the exit code is not very descriptive."
|
|
|
|
echo "Most likely it will not help you solve the issue."
|
|
|
|
echo ""
|
|
|
|
echo "To find the reason for failure: please search for errors in the log above."
|
|
|
|
echo ""
|
|
|
|
fi;
|
|
|
|
|
2019-11-30 15:36:27 +00:00
|
|
|
#
|
2020-01-29 22:37:11 +00:00
|
|
|
# Exit with code from the build step.
|
2019-11-30 15:36:27 +00:00
|
|
|
#
|
|
|
|
|
2021-02-27 18:13:19 +00:00
|
|
|
if [ $USE_EXIT_CODE = true ]; then
|
2020-01-29 22:37:11 +00:00
|
|
|
exit $TEST_RUNNER_EXIT_CODE
|
2021-02-27 18:13:19 +00:00
|
|
|
fi;
|