travis requires all unit tests to pass. also refactor run_wml_tests.

With the change to --log-strict, it's not necessary to rerun with
strict mode off, so we can get rid of part of the old system.

Feel free to revert this is you don't want travis to require all
unit tests to pass as part of the build.
This commit is contained in:
Chris Beck 2014-05-20 16:38:18 -04:00
parent f09d405629
commit e89d94d5cd
3 changed files with 12 additions and 3 deletions

View file

@ -5,12 +5,14 @@ compiler:
install:
- sudo apt-get update -qq
- sudo apt-get install -qq libboost-iostreams-dev libboost-program-options-dev libboost-regex-dev libboost-system-dev libboost-test-dev libcairo2-dev libfribidi-dev libpango1.0-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
script: scons cxxtool=$CXX strict=True wesnoth wesnothd campaignd test
after_script:
script:
- scons cxxtool=$CXX strict=True wesnoth wesnothd campaignd test
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- ./test
- ./travis_wml_unit_tests.sh
- ./run_wml_tests -u
after_failure:
- ./travis_after_failure.sh
notifications:
email: false
irc:

7
travis_after_failure.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
if [ -f "errors.log" ]; then
echo -e "\n*** \n*"
echo "* Errors reported in wml unit tests, here is errors.log..."
echo -e "*\n*** \n"
cat errors.log
fi