diff options
author | Richard Weickelt <richard@weickelt.de> | 2020-04-04 12:10:00 +0200 |
---|---|---|
committer | Richard Weickelt <richard@weickelt.de> | 2020-04-07 11:21:42 +0000 |
commit | 77541d68c135039a7ad3431ec1b2f00753e1028e (patch) | |
tree | 6f7bef4dc8e26bb64110a0e129bae242f759bf37 /.travis.yml | |
parent | 6f904ec4e8fd8596840038341f408569c7813f0d (diff) |
Enable coredumps on macOS
This patch enables backtraces in case a program crashes during the build/test.
We want to see the backtrace of Qbs when it crashes.
Change-Id: Ie90f805a68ca9b2d01644b25e81d4d60ab467d0c
Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 4add585f1..1818ff595 100644 --- a/.travis.yml +++ b/.travis.yml @@ -96,6 +96,8 @@ jobs: - ./scripts/install-qt.sh -d ${QT_INSTALL_DIR} --version ${QT_VERSION} qtbase qtdeclarative qttools qtscript qtscxml - ./scripts/install-qt.sh -d ${QT_INSTALL_DIR} --version ${QTCREATOR_VERSION} qtcreator - pip3 install --user beautifulsoup4 lxml + before_script: + - ulimit -c unlimited -S # enable core dumps script: - ccache -s - qbs setup-toolchains --detect @@ -105,6 +107,13 @@ jobs: - qbs config --list profiles - scripts/build-qbs-with-qbs.sh - ccache -s + # Find core dump and print traceback on failure + after_failure: + - | + for f in $(find /cores -maxdepth 1 -name 'core.*' -print); do + lldb --core $f --batch --one-line "bt" + done; + - <<: *build-on-macos name: With Qbs on macOS (xcode 10.3) |