mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 07:48:02 +00:00
feat(CI): Travis check modules (#1663)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user