mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
Improved travis compilation
it must give us errors on warnings allowing contributors to fix them as soon as possible (best before accepting PR)
This commit is contained in:
@@ -17,9 +17,9 @@ before_install:
|
||||
|
||||
install:
|
||||
- mysql -uroot -e 'create database test_mysql;'
|
||||
# bin directory already exists in the repo and therefore is not created here
|
||||
- cd bin
|
||||
- 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_INSTALL_PREFIX=check_install
|
||||
- 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:
|
||||
@@ -35,6 +35,7 @@ script:
|
||||
- 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 bin
|
||||
- cd build
|
||||
- make -j 8 -k && make install
|
||||
- cd check_install/bin
|
||||
|
||||
|
||||
Reference in New Issue
Block a user