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
matrix:
include:
- rvm: 2.2.9
- rvm: 2.3.6
- rvm: 2.4.3
- rvm: 2.5.0
- rvm: 2.3.7
- rvm: 2.4.4
before_install:
# https://github.com/travis-ci/travis-ci/issues/8978
- 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
before_install:
# https://github.com/travis-ci/travis-ci/issues/8978
- gem update --system
- gem install bundler
- jdk: oraclejdk8
install:
- 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
remote: https://rubygems.org/
specs:
diff-lcs (1.2.5)
rake (10.4.2)
diff-lcs (1.3)
rake (10.5.0)
rspec (2.14.1)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
@ -21,4 +21,4 @@ DEPENDENCIES
rspec (~> 2.14.1)
BUNDLED WITH
1.14.5
1.16.1

View file

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

View file

@ -10,7 +10,11 @@ class BlockingMatcher
blocking = false
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
end
thread.kill

View file

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

View file

@ -36,6 +36,6 @@ def remove_guards(guard, keep)
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 ["'][0-9.]*["']...["']#{version}["'] do/, false)