mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 18:51:29 +00:00
[CI] Fix database race condition (#4646)
* [CI] Fix race condition * Update linux-build.sh * Update linux-build.sh * Update linux-build.sh * Update linux-build.sh
This commit is contained in:
parent
e9678da311
commit
752ac78c56
@ -43,6 +43,10 @@ mkdir logs
|
|||||||
ln -s ./quests/lua_modules ./lua_modules
|
ln -s ./quests/lua_modules ./lua_modules
|
||||||
ln -s ./quests/plugins ./plugins
|
ln -s ./quests/plugins ./plugins
|
||||||
|
|
||||||
|
while [ ! -f /tmp/import-done ]; do
|
||||||
|
sleep 1 # Wait for 1 second before checking again
|
||||||
|
done
|
||||||
|
|
||||||
echo "# Running world database updates"
|
echo "# Running world database updates"
|
||||||
FORCE_INTERACTIVE=1 ./bin/world database:updates --skip-backup --force
|
FORCE_INTERACTIVE=1 ./bin/world database:updates --skip-backup --force
|
||||||
|
|
||||||
@ -50,7 +54,12 @@ echo "# Running shared_memory"
|
|||||||
./bin/shared_memory
|
./bin/shared_memory
|
||||||
|
|
||||||
echo "# Running NPC hand-in tests"
|
echo "# Running NPC hand-in tests"
|
||||||
./bin/zone tests:npc-handins
|
./bin/zone tests:npc-handins 2>&1 | tee test_output.log
|
||||||
|
|
||||||
|
if grep -E -q "QueryErr|Error" test_output.log; then
|
||||||
|
echo "Error found in test output! Failing build."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# shellcheck disable=SC2164
|
# shellcheck disable=SC2164
|
||||||
cd /drone/src/
|
cd /drone/src/
|
||||||
|
|||||||
@ -88,3 +88,5 @@ rm -rf /tmp/db/
|
|||||||
rm -rf ${COMBINED_DIR}
|
rm -rf ${COMBINED_DIR}
|
||||||
|
|
||||||
echo "Database import complete!"
|
echo "Database import complete!"
|
||||||
|
|
||||||
|
touch /tmp/import-done
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user