diff --git a/.travis.yml b/.travis.yml index a1b804958..5e67ceb9a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 +