42 lines
919 B
Bash
42 lines
919 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
#
|
||
|
# Run steps
|
||
|
#
|
||
|
source /steps/set_extra_git_configs.sh
|
||
|
source /steps/set_gitcredential.sh
|
||
|
source /steps/activate.sh
|
||
|
|
||
|
# If we didn't activate successfully, exit with the exit code from the activation step.
|
||
|
if [[ $UNITY_EXIT_CODE -ne 0 ]]; then
|
||
|
exit $UNITY_EXIT_CODE
|
||
|
fi
|
||
|
|
||
|
source /steps/run_tests.sh
|
||
|
source /steps/return_license.sh
|
||
|
|
||
|
#
|
||
|
# 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;
|
||
|
|
||
|
#
|
||
|
# Exit with code from the build step.
|
||
|
#
|
||
|
|
||
|
if [[ $USE_EXIT_CODE == true || $TEST_RUNNER_EXIT_CODE -ne 2 ]]; then
|
||
|
exit $TEST_RUNNER_EXIT_CODE
|
||
|
fi;
|