Prevents the crash log printer on macOS from crashing the entire job.

This commit is contained in:
kennytm 2018-03-10 18:38:27 +08:00
parent 948e3a30e6
commit b8cd6e5d7b
No known key found for this signature in database
GPG Key ID: FEF6C8051D0E013C

View File

@ -275,11 +275,12 @@ after_failure:
- ls -lat $HOME/Library/Logs/DiagnosticReports/
- find $HOME/Library/Logs/DiagnosticReports
-type f
-name '*.crash'
-not -name '*.stage2-*.crash'
-not -name 'com.apple.CoreSimulator.CoreSimulatorService-*.crash'
-exec printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" {} \;
-exec head -750 {} \;
-exec echo travis_fold":"end:crashlog \;
-exec echo travis_fold":"end:crashlog \; || true
# attempt to debug anything killed by the oom killer on linux, just to see if
# it happened