aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-16 04:59:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-16 04:59:31 +0000
commitc51a3e6403775b0a4f51de5ac1ef2577814df3bf (patch)
tree03a5a75ce1f866f66c1034512e75d26b527e8f25 /.travis.yml
parent50201018292a9f02b1413e8bc35f8d90a9c56613 (diff)
downloadruby-c51a3e6403775b0a4f51de5ac1ef2577814df3bf.tar.gz
.travis.yml: dump crash logs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml7
1 files changed, 4 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 154c2ff16d..85cb3ddbff 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -46,6 +46,7 @@ install: "if [[ $TRAVIS_OS_NAME = 'linux' ]]; then sudo apt-get -qq build-dep ru
# like test-all, test-rubyspec. This is because they take too much time,
# enough for Travis to shut down the VM as being stalled.
before_script:
+ - "if [[ $TRAVIS_OS_NAME = 'osx' ]]; then find ~/Library/Logs/DiagnosticReports -type f -name ruby_\*.crash -delete; fi"
- "uname -a"
- "uname -r"
- "rm -fr .ext autom4te.cache"
@@ -61,9 +62,9 @@ before_script:
- "make -s $JOBS exts"
- "make update-rubyspec"
script:
- - "make test"
- - "make test-all TESTS='-q -j2'"
- - "make test-rubyspec"
+ - "make test || { [ $TRAVIS_OS_NAME = osx ] && cat ~/Library/Logs/DiagnosticReports/ruby_*.crash && false; }"
+ - "make test-all TESTS='-q -j2' || { [ $TRAVIS_OS_NAME = osx ] && cat ~/Library/Logs/DiagnosticReports/ruby_*.crash && false; }"
+ - "make test-rubyspec || { [ $TRAVIS_OS_NAME = osx ] && cat ~/Library/Logs/DiagnosticReports/ruby_*.crash && false; }"
# Branch matrix. Not all branches are Travis-ready so we limit branches here.
branches: