move ai playtest and backtrace out of travis.yml to a script
This commit is contained in:
parent
49be669cd0
commit
baeac17fa2
2 changed files with 4 additions and 3 deletions
|
@ -44,12 +44,10 @@ script:
|
|||
- "sh -e /etc/init.d/xvfb start"
|
||||
- if [ "$CPP_TESTS" = true ]; then time ./utils/travis/test_executor.sh; fi
|
||||
- if [ "$WML_TESTS" = true ]; then time ./run_wml_tests -g -v -t "$WML_TEST_TIME"; fi
|
||||
- time if [ "$PLAY_TEST" = true ]; then ./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 ./utils/travis/play_test_executor.sh; fi
|
||||
|
||||
after_failure:
|
||||
- if [ -f "errors.log" ]; then echo -e "\n*** \n*\n* Errors reported in wml unit tests, here is errors.log...\n*\n*** \n"; cat errors.log; 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
|
||||
|
||||
notifications:
|
||||
email: false
|
||||
|
|
3
utils/travis/play_test_executor.sh
Executable file
3
utils/travis/play_test_executor.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
gdb -q -batch -return-child-result -ex "run" -ex "thread apply all bt" -ex "quit" --args ./wesnoth -m --controller 1:ai --controller 2:ai --nogui
|
Loading…
Add table
Reference in a new issue