From 463c20ebb05f8ec7a0c7d31f000e54da450e52a6 Mon Sep 17 00:00:00 2001 From: Florian Walch Date: Sun, 7 Dec 2014 19:20:26 +0100 Subject: Travis: Change search pattern for core dumps. Would otherwise find files in .deps if dependencies are built. --- .ci/common.sh | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.ci/common.sh b/.ci/common.sh index e83038c1a6..bb6c5758d6 100644 --- a/.ci/common.sh +++ b/.ci/common.sh @@ -28,11 +28,21 @@ check_logs() { check_core_dumps() { sleep 2 - local c - for c in $(find ./ -name '*core*' -print); do - gdb -q -n -batch -ex bt build/bin/nvim $c - exit 1 + + if [ "$TRAVIS_OS_NAME" = "osx" ]; then + cores=/cores/* + else + # TODO(fwalch): Will trigger if a file named core.* exists outside of .deps. + cores="$(find ./ -not -path '*.deps*' -name 'core.*' -print)" + fi + + if [ -z "$cores" ]; then + return + fi + for c in $cores; do + gdb -q -n -batch -ex bt build/bin/nvim $c done + exit 1 } setup_deps() { -- cgit