Files
azerothcore-wotlk/.travis.yml

35 lines
965 B
YAML

sudo: required
dist: trusty # (14.04)
# xenial (16.04) is not supported yet
language: cpp
compiler:
- clang
git:
depth: 1
before_install:
- git config user.email "travis@build.bot" && git config user.name "Travis CI"
- cd bin/
# import pending sql
- bash acore-db-pendings
- cd ..
# push changes to git if any
- git fetch --unshallow
- git add -A .
- git commit -am "Importing pending sql"
- git push https://$GITHUB_API_KEY@github.com/azerothcore/azerothcore-wotlk.git master;
install:
# install OS deps (apt-get)
- bash ./install.sh 2
# create and import mysql
- bash ./install.sh 7
script:
# create config file
- echo "CCUSTOMOPTIONS='-DWITH_WARNINGS=1 -DWITH_COREDEBUG=1 -DUSE_COREPCH=0 -DUSE_SCRIPTPCH=0 -DTOOLS=1 -DSCRIPTS=1 -DSERVERS=1 -DWITH_PERFTOOLS=1 -DENABLE_EXTRA_LOGS=1 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=\"-Werror\" -DCMAKE_CXX_FLAGS=\"-Werror\"';" >> conf/config.sh
# compile
- bash ./install.sh 5