a738fb3e4d
it must give us errors on warnings allowing contributors to fix them as soon as possible (best before accepting PR)
42 lines
1.7 KiB
YAML
42 lines
1.7 KiB
YAML
sudo: required
|
|
dist: trusty # (14.04)
|
|
# xenial (16.04) is not supported yet
|
|
|
|
language: cpp
|
|
compiler:
|
|
- clang
|
|
|
|
git:
|
|
depth: 1
|
|
|
|
before_install:
|
|
- sudo apt-get -y install build-essential libtool make cmake cmake-data openssl libgoogle-perftools-dev
|
|
- sudo apt-get -y install libssl-dev libmysqlclient-dev libmysql++-dev libreadline6-dev zlib1g-dev libbz2-dev libace-dev
|
|
- 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 build
|
|
- cd build
|
|
- cmake ../ -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" -DCMAKE_INSTALL_PREFIX=check_install
|
|
- cd ..
|
|
|
|
script:
|
|
- $CXX --version
|
|
- mysql -uroot < data/sql/create/create_mysql.sql
|
|
- cat data/sql/base/db_auth/*.sql | mysql -uacore -pacore auth
|
|
- cat data/sql/base/db_characters/*.sql | mysql -uacore -pacore characters
|
|
- cat data/sql/base/db_world/*.sql | mysql -uacore -pacore world
|
|
- cat data/sql/updates/db_auth/*.sql | mysql -uacore -pacore auth
|
|
- cat data/sql/updates/db_characters/*.sql | mysql -uacore -pacore characters
|
|
- cat data/sql/updates/db_world/*.sql | mysql -uacore -pacore world
|
|
- cat data/sql/updates/pending_db_auth/*.sql | mysql -uacore -pacore auth
|
|
- cat data/sql/updates/pending_db_characters/*.sql | mysql -uacore -pacore characters
|
|
- cat data/sql/updates/pending_db_world/*.sql | mysql -uacore -pacore world
|
|
- mysql -uroot < data/sql/create/drop_mysql.sql
|
|
- cd build
|
|
- make -j 8 -k && make install
|
|
- cd check_install/bin
|
|
|