CI/Travis: Add steps to create databases and import SQLs

This way the automated build with error if sqls contain errors.
Do NOT import world_database.sql, keep using TDB releases.
This commit is contained in:
DDuarte
2014-07-28 23:22:53 +01:00
parent 934ef1c57f
commit 64c8c47622
2 changed files with 3677 additions and 4 deletions

View File

@@ -2,6 +2,9 @@ language: cpp
compiler:
- clang
git:
depth: 1
before_install:
- echo "yes" | sudo add-apt-repository ppa:kalakris/cmake
- echo "yes" | sudo add-apt-repository ppa:boost-latest/ppa
@@ -11,11 +14,19 @@ before_install:
- sudo apt-get -qq install libssl-dev libmysqlclient15-dev libmysql++-dev libreadline6-dev zlib1g-dev libbz2-dev
- sudo apt-get -qq install libboost1.55-dev libboost-thread1.55-dev libboost-system1.55-dev libboost-program-options1.55-dev
script:
install:
- mysql -uroot -e 'create database test_mysql;'
- mkdir bin
- cd bin
- cmake ../ -DWITH_WARNINGS=1 -DWITH_COREDEBUG=1 -DUSE_COREPCH=0 -DUSE_SCRIPTPCH=0 -DTOOLS=1 -DSCRIPTS=1 -DSERVERS=1 -DCMAKE_BUILD_TYPE=Release
- make -j 8
git:
depth: 1
script:
- cd ..
- mysql -uroot < sql/create/create_mysql.sql
- mysql -uroot auth < sql/base/auth_database.sql
- mysql -uroot characters < sql/base/characters_database.sql
- mysql -uroot world < sql/base/world_database.sql
- for file in sql/updates/world/*.sql; do mysql -uroot world < $file; done
- mysql -uroot < sql/create/drop_mysql.sql
- cd bin
- make -j 8

3662
sql/base/world_database.sql Normal file

File diff suppressed because it is too large Load Diff