fix(CI): fix paths for dry-run check (#1697)

This commit is contained in:
Stoabrogga
2019-04-08 10:04:34 +02:00
committed by GitHub
parent e1d782d0de
commit 68c89e8af9
3 changed files with 4 additions and 6 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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"