Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 601bc13

Browse files
authored
Merge pull request #326 from rspec/update-travis-build-scripts-2017-08-10-for-master
Updates from rspec-dev (2017-08-10)
2 parents 70a8b33 + 22a634f commit 601bc13

File tree

10 files changed

+26
-14
lines changed

10 files changed

+26
-14
lines changed

.rubocop_rspec_base.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2017-07-15T20:27:05+07:00 from the rspec-dev repo.
1+
# This file was generated on 2017-08-10T01:31:46+09:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
# This file contains defaults for RSpec projects. Individual projects

.travis.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2017-07-15T20:27:05+07:00 from the rspec-dev repo.
1+
# This file was generated on 2017-08-10T01:31:46+09:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
language: ruby
@@ -28,16 +28,18 @@ rvm:
2828
- rbx
2929
- jruby
3030
- jruby-head
31-
- jruby-18mode
32-
- jruby-9.1.2.0
31+
- jruby-1.7
32+
env:
33+
- JRUBY_OPTS='--dev'
3334
matrix:
35+
include:
36+
- rvm: jruby-1.7
37+
env: JRUBY_OPTS='--dev --1.8'
3438
allow_failures:
3539
- rvm: jruby-head
3640
- rvm: ruby-head
3741
- rvm: rbx
3842
fast_finish: true
39-
env:
40-
- JRUBY_OPTS='--dev'
4143
branches:
4244
only:
4345
- master

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2017-07-15T20:27:05+07:00 from the rspec-dev repo.
1+
# This file was generated on 2017-08-10T01:31:46+09:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
version: "{build}"

lib/rspec/support/ruby_features.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ def supports_exception_cause?
8080

8181
if Ruby.jruby?
8282
ripper_requirements.push(Ruby.jruby_version >= '1.7.5')
83-
# Ripper on JRuby 9.0.0.0.rc1 or later reports wrong line number
83+
# Ripper on JRuby 9.0.0.0.rc1 - 9.1.8.0 reports wrong line number
8484
# or cannot parse source including `:if`.
85-
ripper_requirements.push(Ruby.jruby_version < '9.0.0.0.rc1')
85+
ripper_requirements.push(!Ruby.jruby_version.between?('9.0.0.0.rc1', '9.1.8.0'))
8686
end
8787

8888
if ripper_requirements.all?

script/clone_all_rspec_repos

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2017-07-15T20:27:05+07:00 from the rspec-dev repo.
2+
# This file was generated on 2017-08-10T01:31:46+09:00 from the rspec-dev repo.
33
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
44

55
set -e

script/functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2017-07-15T20:27:05+07:00 from the rspec-dev repo.
1+
# This file was generated on 2017-08-10T01:31:46+09:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

script/predicate_functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2017-07-15T20:27:05+07:00 from the rspec-dev repo.
1+
# This file was generated on 2017-08-10T01:31:46+09:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
function is_mri {

script/run_build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2017-07-15T20:27:05+07:00 from the rspec-dev repo.
2+
# This file was generated on 2017-08-10T01:31:46+09:00 from the rspec-dev repo.
33
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
44

55
set -e

script/travis_functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2017-07-15T20:27:05+07:00 from the rspec-dev repo.
1+
# This file was generated on 2017-08-10T01:31:46+09:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
# Taken from:

spec/rspec/support/object_formatter_spec.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ def with_date_loaded
9393
it 'includes a conventional representation of the decimal' do
9494
in_sub_process_if_possible do
9595
require 'bigdecimal'
96+
# Suppress warning on JRuby 1.7:
97+
# file:/Users/me/.rbenv/versions/jruby-1.7.26/lib/jruby.jar!/jruby/bigdecimal.rb:1
98+
# warning: loading in progress, circular require considered harmful - bigdecimal.jar
99+
$stderr.reset!
100+
96101
expect(formatted_decimal).to include('3.3 (#<BigDecimal')
97102
end
98103
end
@@ -136,6 +141,11 @@ def with_delegate_loaded
136141
it 'formats the underlying object normally' do
137142
with_delegate_loaded do
138143
require 'bigdecimal'
144+
# Suppress warning on JRuby 1.7:
145+
# file:/Users/me/.rbenv/versions/jruby-1.7.26/lib/jruby.jar!/jruby/bigdecimal.rb:1
146+
# warning: loading in progress, circular require considered harmful - bigdecimal.jar
147+
$stderr.reset!
148+
139149
expect(ObjectFormatter.format(delegator)).to eq "#<SimpleDelegator(#{formatted_decimal})>"
140150
end
141151
end

0 commit comments

Comments
 (0)