mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
feat(CI): Travis check modules (#1663)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 <modules/mod-premium/sql/example_item_9017.sql
|
||||
fi
|
||||
fi
|
||||
|
||||
11
apps/ci/ci-install-modules.sh
Executable file
11
apps/ci/ci-install-modules.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
echo "install modules"
|
||||
git clone --depth=1 --branch=master --recursive https://github.com/azerothcore/mod-eluna-lua-engine.git modules/mod-eluna-lua-engine
|
||||
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-vas-autobalance.git modules/mod-vas-autobalance
|
||||
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-transmog.git modules/mod-transmog
|
||||
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-npc-beastmaster.git modules/mod-npc-beastmaster
|
||||
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-duel-reset.git modules/mod-duel-reset
|
||||
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-premium modules/mod-premium
|
||||
@@ -5,8 +5,12 @@ 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 /home/travis/build/azerothcore/azerothcore-wotlk/env/dist/data
|
||||
git clone --depth=1 --branch=master --single-branch https://github.com/ac-data/ac-data.git "$TRAVIS_BUILD_DIR/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,5 +8,3 @@ 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