aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-18 01:14:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-18 01:14:09 +0000
commitfaa53ca2f6bd995c41f1f614f19c0ef1f99071a1 (patch)
treec7c0d55629e9ba9ea5fa03115fe032886f14c986 /.travis.yml
parent2e3f1c1187fbbc878c73ec2d1d017e2b78c818c3 (diff)
downloadruby-faa53ca2f6bd995c41f1f614f19c0ef1f99071a1.tar.gz
.travis.yml: use after_failure
* .travis.yml: use after_failure section to dump crash log files. http://docs.travis-ci.com/user/build-lifecycle/ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml10
1 files changed, 6 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 8bf47452e7..4550563a02 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -46,7 +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"
+ - "if [[ $TRAVIS_OS_NAME = 'osx' ]]; then rm -f ~/Library/Logs/DiagnosticReports/ruby_*.crash; fi"
- "uname -a"
- "uname -r"
- "rm -fr .ext autom4te.cache"
@@ -62,9 +62,11 @@ before_script:
- "make -s $JOBS exts"
- "make update-rubyspec"
script:
- - "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; }"
+ - "make test"
+ - "make test-all TESTS='-q -j2'"
+ - "make test-rubyspec"
+after_failure:
+ - "if [[ $TRAVIS_OS_NAME = 'osx' ]]; then find ~/Library/Logs/DiagnosticReports -type f -name ruby_\\*.crash -ls -execdir cat {} \\; -delete; fi"
# Branch matrix. Not all branches are Travis-ready so we limit branches here.
branches: