also run ai test with gui on

This commit is contained in:
Chris Beck 2014-07-06 12:58:23 -04:00
parent 4230bfb17f
commit ad402a721f

View file

@ -44,6 +44,7 @@ script:
- time if [[ "$CPP_TESTS" = true ]]; then ./test; export TEST_ERROR_CODE=$?; ./utils/travis/exit_wrapper.sh $TEST_ERROR_CODE; fi
- if [[ "$WML_TESTS" = true ]]; then time ./run_wml_tests -g -v -t "$WML_TEST_TIME"; fi
- if [ "$PLAY_TEST" = true ]; then time ./wesnoth -m --controller 1:ai --controller 2:ai --nogui; export PLAY_TEST_ERROR_CODE=$?; ./utils/travis/exit_wrapper.sh $PLAY_TEST_ERROR_CODE; fi
- if [ "$PLAY_TEST" = true ]; then time ./wesnoth -m --controller 1:ai --controller 2:ai; export PLAY_TEST_GUI_ERROR_CODE=$?; ./utils/travis/exit_wrapper.sh $PLAY_TEST_GUI_ERROR_CODE; fi
after_failure:
- if [ "$TEST_ERROR_CODE" -ge 128 -a "$WML_TESTS" = false ]; then time sudo apt-get install -qq gdb; fi
# Need to install that if we don't already have it
@ -52,6 +53,8 @@ after_failure:
- if [ "$TEST_ERROR_CODE" -ge 128 ]; then time gdb -q -batch -ex start -ex continue -ex bt -ex quit --args ./test; fi
- if [ "$PLAY_TEST_ERROR_CODE" -ge 128 ]; then echo -e "\n***\n*\n* Encountered a segfault when running an ai test, attempting to get a backtrace in the remaining time...\n*\n***\n"; fi
- if [ "$PLAY_TEST_ERROR_CODE" -ge 128 ]; then time gdb -q -batch -ex start -ex continue -ex bt -ex quit --args ./wesnoth -m --controller 1:ai --controller 2:ai --nogui; fi
- if [ "$PLAY_TEST_GUI_ERROR_CODE" -ge 128 ]; then echo -e "\n***\n*\n* Encountered a segfault when running an ai test, attempting to get a backtrace in the remaining time...\n*\n***\n"; fi
- if [ "$PLAY_TEST_GUI_ERROR_CODE" -ge 128 ]; then time gdb -q -batch -ex start -ex continue -ex bt -ex quit --args ./wesnoth -m --controller 1:ai --controller 2:ai; fi
notifications:
email: false