.travis.yml: Fix core file generation on error

This commit is contained in:
Nathaniel Nicandro 2019-05-23 16:51:03 -05:00
parent fdaf7719d8
commit 46ec412bfc

View file

@ -24,6 +24,8 @@ before_install:
- curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go | python
install:
- sudo apt-get install -y gdb
- gdb --version
- evm bin
- sudo apt-get install -y python3 python3-pip &> /dev/null
- sudo pip3 install --upgrade setuptools pip &> /dev/null
# --ignore-installed six since jupyter tries to upgrade it, but it can't be
@ -45,7 +47,7 @@ before_script:
- ulimit -c unlimited -S
after_failure:
- COREFILE=$(find . -maxdepth 1 -name "core*" | head -n 1)
- if [[ -f "$COREFILE" ]]; then gdb -c "$COREFILE" $(which emacs) -ex "thread apply all bt" -ex "set pagination 0" -batch; fi
- if [[ -f "$COREFILE" ]]; then gdb -c "$COREFILE" $(evm bin) -ex "thread apply all bt" -ex "set pagination 0" -batch; fi
script:
- cd $TRAVIS_BUILD_DIR
- make compile