Skip to content

Commit

Permalink
[travis] Print coredumps for failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fetzerch committed Feb 18, 2016
1 parent 2600f1d commit c935aaf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ install:
# Linux dependencies
#
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$BUILD" == "Kodi" ]]; then
sudo apt-get install -qq automake autopoint build-essential cmake curl dcadec-dev default-jre gawk gdc
sudo apt-get install -qq automake autopoint build-essential cmake curl dcadec-dev default-jre gawk gdb gdc
gettext git-core gperf libasound2-dev libass-dev libbz2-dev libcap-dev libcdio-dev libcrossguid-dev libcurl3
libcurl4-openssl-dev libdbus-1-dev libfontconfig-dev libegl1-mesa-dev libfreetype6-dev libfribidi-dev libgif-dev
libiso9660-dev libjpeg-dev libltdl-dev liblzo2-dev libmicrohttpd-dev libmodplug-dev libmysqlclient-dev libnfs-dev
Expand All @@ -86,6 +86,7 @@ before_script:
# Linux
#
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$BUILD" == "Kodi" ]]; then
ulimit -c unlimited -S;
if [[ "$TOOLS" == "Autotools" ]]; then
cd $TRAVIS_BUILD_DIR &&
./bootstrap;
Expand Down Expand Up @@ -138,6 +139,12 @@ script:
make -j3;
fi

after_failure:
- COREFILE=$(find . -maxdepth 1 -name "core*" | head -n 1)
- if [[ -f "$COREFILE" ]]; then
gdb -c "$COREFILE" kodi-test -ex "thread apply all bt" -ex "set pagination 0" -batch;
fi

# Disable annoying emails
#
notifications:
Expand Down

0 comments on commit c935aaf

Please sign in to comment.