diff --git a/.travis.yml b/.travis.yml index eff55d188..59aaab5c9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,6 +39,7 @@ jobs: - source ./apps/ci/ci-before_install.sh install: - source ./apps/ci/ci-install.sh OFF + - source ./apps/ci/ci-install-modules.sh script: - source ./apps/ci/ci-compile.sh @@ -48,6 +49,7 @@ jobs: - source ./apps/ci/ci-before_install.sh install: - source ./apps/ci/ci-install.sh ON + - source ./apps/ci/ci-install-modules.sh - source ./apps/ci/ci-import-db.sh script: - source ./apps/ci/ci-compile.sh @@ -59,6 +61,7 @@ jobs: - source ./apps/ci/ci-before_install.sh install: - source ./apps/ci/ci-install.sh OFF + - source ./apps/ci/ci-install-modules.sh script: - source ./apps/ci/ci-compile.sh @@ -68,5 +71,6 @@ jobs: - source ./apps/ci/ci-before_install.sh install: - source ./apps/ci/ci-install.sh ON + - source ./apps/ci/ci-install-modules.sh script: - source ./apps/ci/ci-compile.sh diff --git a/apps/ci/ci-error-check.sh b/apps/ci/ci-error-check.sh index 945844a6a..eb65ddec3 100755 --- a/apps/ci/ci-error-check.sh +++ b/apps/ci/ci-error-check.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -DB_ERRORS_FILE="/home/travis/build/azerothcore/azerothcore-wotlk/env/dist/bin/DBErrors.log"; +DB_ERRORS_FILE="$TRAVIS_BUILD_DIR/env/dist/bin/DBErrors.log"; #DB_ERRORS_FILE="./env/dist/bin/DBErrors.log"; if [[ ! -f ${DB_ERRORS_FILE} ]]; then diff --git a/apps/ci/ci-import-db.sh b/apps/ci/ci-import-db.sh index 98d6fcf0c..58747c877 100755 --- a/apps/ci/ci-import-db.sh +++ b/apps/ci/ci-import-db.sh @@ -6,4 +6,10 @@ if [ "$TRAVIS_BUILD_ID" = "1" ] then echo "import DB" bash ./acore.sh "db-assembler" "import-all" + + if [ -s modules/mod-premium/sql/example_item_9017.sql ] + then + # if the premium module is available insert the example item or else the worldserver dry run will fail + mysql -u root world_$DB_RND_NAME ./env/dist/etc/worldserver.conf + cat >>./env/dist/etc/worldserver.conf <