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:
+5
-4
@@ -17,9 +17,9 @@ before_install:
|
|||||||
|
|
||||||
install:
|
install:
|
||||||
- mysql -uroot -e 'create database test_mysql;'
|
- mysql -uroot -e 'create database test_mysql;'
|
||||||
# bin directory already exists in the repo and therefore is not created here
|
- mkdir build
|
||||||
- cd bin
|
- 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_INSTALL_PREFIX=check_install
|
- 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 ..
|
- cd ..
|
||||||
|
|
||||||
script:
|
script:
|
||||||
@@ -35,6 +35,7 @@ script:
|
|||||||
- cat data/sql/updates/pending_db_characters/*.sql | mysql -uacore -pacore characters
|
- cat data/sql/updates/pending_db_characters/*.sql | mysql -uacore -pacore characters
|
||||||
- cat data/sql/updates/pending_db_world/*.sql | mysql -uacore -pacore world
|
- cat data/sql/updates/pending_db_world/*.sql | mysql -uacore -pacore world
|
||||||
- mysql -uroot < data/sql/create/drop_mysql.sql
|
- mysql -uroot < data/sql/create/drop_mysql.sql
|
||||||
- cd bin
|
- cd build
|
||||||
- make -j 8 -k && make install
|
- make -j 8 -k && make install
|
||||||
- cd check_install/bin
|
- cd check_install/bin
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user