Only capture stderr on Ruby 2.1 on CI

Always show warnings in tests
This commit is contained in:
Benjamin Fleischer 2015-11-08 23:17:08 -06:00
parent e5a109865c
commit 14a06d96c4
2 changed files with 5 additions and 2 deletions

View File

@ -8,7 +8,6 @@ cache:
rvm:
- 1.9.3
- 2.0.0
- 2.1
- 2.2
- ruby-head
- rbx-2
@ -17,7 +16,7 @@ install:
- bundle install --retry=3
script:
- env CAPTURE_STDERR=false bundle exec rake ci
- env CAPTURE_STDERR=${CAPTURE_STDERR:-false} bundle exec rake ci
env:
- "RAILS_VERSION=4.0"
@ -27,6 +26,8 @@ env:
matrix:
include:
- rvm: 2.1
env: CAPTURE_STDERR=true
- rvm: jruby-19mode
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false -Xcli.debug=true --debug'
allow_failures:

View File

@ -49,6 +49,8 @@ end
if ENV['CAPTURE_STDERR'] !~ /false|1/i
require 'capture_warnings'
CaptureWarnings.new(_fail_build = true).execute!
else
$VERBOSE = true
end
require 'active_model_serializers'