mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
fix(CI): fix paths for dry-run check (#1697)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
DB_ERRORS_FILE="$TRAVIS_BUILD_DIR/env/dist/bin/DBErrors.log";
|
||||
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
|
||||
|
||||
@@ -5,12 +5,8 @@ set -e
|
||||
if [ "$TRAVIS_BUILD_ID" = "1" ]
|
||||
then
|
||||
echo "start worldserver dry-run"
|
||||
git clone --depth=1 --branch=master --single-branch https://github.com/ac-data/ac-data.git "$TRAVIS_BUILD_DIR/env/dist/data"
|
||||
git clone --depth=1 --branch=master --single-branch https://github.com/ac-data/ac-data.git /home/travis/build/azerothcore/azerothcore-wotlk/env/dist/data
|
||||
sed -e "s/;;acore_auth/;$DB_RND_NAME;auth_$DB_RND_NAME/" -e "s/;;acore_world/;$DB_RND_NAME;world_$DB_RND_NAME/" -e "s/;;acore_characters/;$DB_RND_NAME;characters_$DB_RND_NAME/" ./data/travis/worldserver.conf >./env/dist/etc/worldserver.conf
|
||||
cat >>./env/dist/etc/worldserver.conf <<WORLD_CONF
|
||||
DataDir = "$TRAVIS_BUILD_DIR/env/dist/data"
|
||||
LogsDir = "$TRAVIS_BUILD_DIR/env/dist/bin"
|
||||
WORLD_CONF
|
||||
./env/dist/bin/worldserver --dry-run
|
||||
./apps/ci/ci-error-check.sh
|
||||
fi
|
||||
|
||||
@@ -8,3 +8,5 @@ WorldDatabaseInfo = "127.0.0.1;3306;root;;acore_world"
|
||||
CharacterDatabaseInfo = "127.0.0.1;3306;root;;acore_characters"
|
||||
|
||||
EnableLogDB = 1
|
||||
DataDir = "/home/travis/build/azerothcore/azerothcore-wotlk/env/dist/data"
|
||||
LogsDir = "/home/travis/build/azerothcore/azerothcore-wotlk/env/dist/bin"
|
||||
|
||||
Reference in New Issue
Block a user