Files
azerothcore-wotlk/apps/ci/ci-script.sh
Stoabrogga b434f24611 fix(CI): break on errors in CI scripts (#1504)
- break on errors by adding `set -e` to the CI scripts
- increase build timeout to 2700 seconds (45 minutes)
2019-02-20 10:49:05 +01:00

19 lines
675 B
Bash
Executable File

#!/bin/bash
set -e
echo "compile core"
export CCACHE_CPP2=true
ccache -s
timeout 2700 bash ./acore.sh "compiler" "all"
ccache -s
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
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
./env/dist/bin/worldserver --dry-run
./apps/ci/ci-error-check.sh
fi