mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-31 06:07:37 +01:00
54 lines
1.6 KiB
YAML
54 lines
1.6 KiB
YAML
dist: bionic
|
|
|
|
language: cpp
|
|
compiler:
|
|
- clang
|
|
|
|
git:
|
|
depth: 1
|
|
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- sourceline: 'ppa:mhier/libboost-latest'
|
|
# - sourceline: 'ubuntu-toolchain-r-test'
|
|
packages:
|
|
- boost1.67
|
|
- libssl-dev
|
|
- libmysqlclient-dev
|
|
- libreadline6-dev
|
|
- zlib1g-dev
|
|
- libbz2-dev
|
|
- g++-6
|
|
|
|
services:
|
|
- mysql
|
|
|
|
before_install:
|
|
- git config user.email "travis@build.bot" && git config user.name "Travis CI"
|
|
- git tag -a -m "Travis build" init
|
|
|
|
install:
|
|
- mysql -uroot -e 'create database test_mysql;'
|
|
- mkdir bin
|
|
- cd bin
|
|
- cmake ../ -DWITH_WARNINGS=1 -DWITH_COREDEBUG=0 -DUSE_COREPCH=1 -DUSE_SCRIPTPCH=1 -DTOOLS=1 -DSCRIPTS=dynamic -DSERVERS=1 -DNOJEM=0 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror" -DCMAKE_C_FLAGS_DEBUG="-DNDEBUG" -DCMAKE_CXX_FLAGS_DEBUG="-DNDEBUG" -DCMAKE_INSTALL_PREFIX=check_install
|
|
- cd ..
|
|
- chmod +x contrib/check_updates.sh
|
|
|
|
script:
|
|
- $CXX --version
|
|
- mysql -uroot < sql/create/create_mysql.sql
|
|
- mysql -utrinity -ptrinity auth < sql/base/auth_database.sql
|
|
- ./contrib/check_updates.sh auth 3.3.5 auth localhost
|
|
- mysql -utrinity -ptrinity characters < sql/base/characters_database.sql
|
|
- ./contrib/check_updates.sh characters 3.3.5 characters localhost
|
|
- mysql -utrinity -ptrinity world < sql/base/dev/world_database.sql
|
|
- cat sql/updates/world/3.3.5/*.sql | mysql -utrinity -ptrinity world
|
|
- mysql -uroot < sql/create/drop_mysql.sql
|
|
- cd bin
|
|
- make -j 4 -k && make install
|
|
- cd check_install/bin
|
|
- ./authserver --version
|
|
- ./worldserver --version
|