1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eregon 2018-04-28 19:49:24 +00:00
parent 703a5dd3e0
commit 702eb2c8bf
6 changed files with 21 additions and 12 deletions

View file

@ -7,17 +7,22 @@ script:
- bundle exec rspec - bundle exec rspec
matrix: matrix:
include: include:
- rvm: 2.2.9 - rvm: 2.3.7
- rvm: 2.3.6 - rvm: 2.4.4
- rvm: 2.4.3
- rvm: 2.5.0
before_install: before_install:
# https://github.com/travis-ci/travis-ci/issues/8978 # https://github.com/travis-ci/travis-ci/issues/8978
- gem update --system - gem update --system
- gem install bundler
- rvm: 2.5.1
before_install:
# https://github.com/travis-ci/travis-ci/issues/8978
- gem update --system
- gem install bundler
- rvm: ruby-head - rvm: ruby-head
before_install: before_install:
# https://github.com/travis-ci/travis-ci/issues/8978 # https://github.com/travis-ci/travis-ci/issues/8978
- gem update --system - gem update --system
- gem install bundler
- jdk: oraclejdk8 - jdk: oraclejdk8
install: install:
- curl -L https://github.com/oracle/truffleruby/releases/download/vm-enterprise-0.28/truffleruby-testing-0.28.tar.gz | tar xz - curl -L https://github.com/oracle/truffleruby/releases/download/vm-enterprise-0.28/truffleruby-testing-0.28.tar.gz | tar xz

View file

@ -1,8 +1,8 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
diff-lcs (1.2.5) diff-lcs (1.3)
rake (10.4.2) rake (10.5.0)
rspec (2.14.1) rspec (2.14.1)
rspec-core (~> 2.14.0) rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0) rspec-expectations (~> 2.14.0)
@ -21,4 +21,4 @@ DEPENDENCIES
rspec (~> 2.14.1) rspec (~> 2.14.1)
BUNDLED WITH BUNDLED WITH
1.14.5 1.16.1

View file

@ -35,7 +35,7 @@ specs in a manner compatible with multiple Ruby implementations.
## Requirements ## Requirements
MSpec requires Ruby 2.2 or more recent. MSpec requires Ruby 2.3 or more recent.
## Bundler ## Bundler

View file

@ -10,7 +10,11 @@ class BlockingMatcher
blocking = false blocking = false
end end
while !started and status = thread.status and status != "sleep" Thread.pass while !started
# Wait until the Thread status is "sleep" (then it's blocking)
# or nil (the Thread finished execution, it did not block)
while status = thread.status and status != "sleep"
Thread.pass Thread.pass
end end
thread.kill thread.kill

View file

@ -39,8 +39,8 @@ class MSpecScript
end end
def initialize def initialize
ruby_version_is ""..."2.2" do ruby_version_is ""..."2.3" do
abort "MSpec needs Ruby 2.2 or more recent" abort "MSpec needs Ruby 2.3 or more recent"
end end
config[:formatter] = nil config[:formatter] = nil

View file

@ -36,6 +36,6 @@ def remove_guards(guard, keep)
end end
end end
version = (ARGV[0] || "2.2") version = (ARGV[0] || "2.3")
remove_guards(/ruby_version_is ["']#{version}["'] do/, true) remove_guards(/ruby_version_is ["']#{version}["'] do/, true)
remove_guards(/ruby_version_is ["'][0-9.]*["']...["']#{version}["'] do/, false) remove_guards(/ruby_version_is ["'][0-9.]*["']...["']#{version}["'] do/, false)