about summary refs log tree commit diff
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2017-11-06 01:10:09 +0800
committerkennytm <kennytm@gmail.com>2017-11-06 03:53:42 +0800
commiteee10cc48245be7b98bfec4c19aa558243e29f46 (patch)
tree6faeb54f9bb26e40a565263b3801fc0b023c433f
parent9cfdabaf3ca626685a3c6ff96f2b9306ee1412c2 (diff)
downloadrust-eee10cc48245be7b98bfec4c19aa558243e29f46.tar.gz
rust-eee10cc48245be7b98bfec4c19aa558243e29f46.zip
Try to print the crash logs on macOS on failure.
An attempt to debug #45230.
-rw-r--r--.travis.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index a59364e40de..33982838eae 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -253,7 +253,14 @@ after_failure:
 
   # Random attempt at debugging currently. Just poking around in here to see if
   # anything shows up.
-  - ls $HOME/Library/Logs/DiagnosticReports/
+  - ls -lat $HOME/Library/Logs/DiagnosticReports/
+  - find $HOME/Library/Logs/DiagnosticReports/ ! \(
+      -name '*.stage2-*.crash'
+      -name 'com.apple.CoreSimulator.CoreSimulatorService-*.crash'
+    \)
+      -exec echo -e travis_fold":start:crashlog\n\033[31;1m" {} "\033[0m" \;
+      -exec head -750 {} \;
+      -exec echo travis_fold":"end:crashlog \;
 
   # attempt to debug anything killed by the oom killer on linux, just to see if
   # it happened