DB/Quest: Suspicious Hoofprints (Horde Version)
[trinitycore] / .travis.yml
1 sudo: false
2 dist: trusty
3
4 language: cpp
5 compiler:
6 - clang
7
8 git:
9 depth: 1
10
11 addons:
12 apt:
13 sources:
14 - ubuntu-toolchain-r-test
15 - sourceline: 'ppa:kzemek/boost'
16 packages:
17 - g++-6
18 - libboost1.58-dev
19 - libboost-filesystem1.58-dev
20 - libboost-iostreams1.58-dev
21 - libboost-program-options1.58-dev
22 - libboost-regex1.58-dev
23 - libboost-system1.58-dev
24 - libboost-thread1.58-dev
25 - libssl-dev
26 - libmysqlclient-dev
27 - libreadline6-dev
28 - zlib1g-dev
29 - libbz2-dev
30
31 services:
32 - mysql
33
34 before_install:
35 - git config user.email "travis@build.bot" && git config user.name "Travis CI"
36 - git tag -a -m "Travis build" init
37
38 install:
39 - mysql -uroot -e 'create database test_mysql;'
40 - mkdir bin
41 - cd bin
42 - cmake ../ -DWITH_WARNINGS=1 -DWITH_COREDEBUG=0 -DUSE_COREPCH=1 -DUSE_SCRIPTPCH=1 -DTOOLS=1 -DSCRIPTS=dynamic -DSERVERS=1 -DNOJEM=1 -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
43 - cd ..
44 - chmod +x contrib/check_updates.sh
45
46 script:
47 - $CXX --version
48 - mysql -uroot < sql/create/create_mysql.sql
49 - mysql -utrinity -ptrinity auth < sql/base/auth_database.sql
50 - ./contrib/check_updates.sh auth master auth
51 - mysql -utrinity -ptrinity characters < sql/base/characters_database.sql
52 - ./contrib/check_updates.sh characters master characters
53 - mysql -utrinity -ptrinity world < sql/base/dev/world_database.sql
54 - mysql -utrinity -ptrinity hotfixes < sql/base/dev/hotfixes_database.sql
55 - cat sql/updates/world/master/*.sql | mysql -utrinity -ptrinity world
56 - cat sql/updates/hotfixes/master/*.sql | mysql -utrinity -ptrinity hotfixes
57 - mysql -uroot < sql/create/drop_mysql.sql
58 - cd bin
59 - make -j 4 -k && make install
60 - cd check_install/bin
61 - ./bnetserver --version
62 - ./worldserver --version