aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Weickelt <richard@weickelt.de>2020-04-04 12:10:00 +0200
committerRichard Weickelt <richard@weickelt.de>2020-04-07 11:21:42 +0000
commit77541d68c135039a7ad3431ec1b2f00753e1028e (patch)
tree6f7bef4dc8e26bb64110a0e129bae242f759bf37
parent6f904ec4e8fd8596840038341f408569c7813f0d (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>
-rw-r--r--.travis.yml9
-rwxr-xr-xscripts/build-qbs-with-qbs.sh2
2 files changed, 11 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)
diff --git a/scripts/build-qbs-with-qbs.sh b/scripts/build-qbs-with-qbs.sh
index a116bc7b9..856cf71b6 100755
--- a/scripts/build-qbs-with-qbs.sh
+++ b/scripts/build-qbs-with-qbs.sh
@@ -54,6 +54,8 @@ BUILD_OPTIONS="\
modules.qbsbuildconfig.enableProjectFileUpdates:true \
modules.qbsbuildconfig.enableUnitTests:true \
modules.cpp.treatWarningsAsErrors:true \
+ modules.cpp.separateDebugInformation:true \
+ modules.qbs.debugInformation:true \
project.withExamples:true \
${BUILD_OPTIONS} \
config:release \