feat(CI): prevent PRs that cause DB errors to get on master (#1407)

This commit is contained in:
Francesco Borzì
2019-02-06 23:55:23 +01:00
committed by GitHub
parent 90e559ad8a
commit 7b61731958
6 changed files with 63 additions and 11 deletions

18
apps/ci-error-check.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
DB_ERRORS_FILE="/home/travis/build/azerothcore/azerothcore-wotlk/env/dist/bin/DBErrors.log";
#DB_ERRORS_FILE="./env/dist/bin/DBErrors.log";
if [[ ! -f ${DB_ERRORS_FILE} ]]; then
echo "File ${DB_ERRORS_FILE} not found!";
exit 1
fi
if [[ -s ${DB_ERRORS_FILE} ]]; then
printf "The DBErrors.log file contains startup errors:\n\n";
cat ${DB_ERRORS_FILE};
printf "\nPlease solve the startup errors listed above!\n";
exit 1;
else
echo "No startup errors found in DBErrors.log, good job!";
fi