Skip to content

Commit 93a2a70

Browse files
committed
Setup rails 6.1 builds
1 parent 508ee0b commit 93a2a70

File tree

4 files changed

+25
-6
lines changed

4 files changed

+25
-6
lines changed

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,22 @@ script: "script/run_build 2>&1"
3838

3939
matrix:
4040
include:
41+
# Rails 6.1 builds >= 2.5
42+
- rvm: ruby-3.0.0-preview1
43+
env: RAILS_VERSION='master'
44+
allow_failure: true
45+
- rvm: 2.7.1
46+
env: RAILS_VERSION='master'
47+
- rvm: 2.6.6
48+
env: RAILS_VERSION='master'
49+
- rvm: 2.5.8
50+
env: RAILS_VERSION='master'
51+
jdk: oraclejdk11
52+
env:
53+
- RAILS_VERSION='master'
54+
- JRUBY_OPT=--dev
55+
- JAVA_OPTS="--add-opens java.base/sun.nio.ch=org.jruby.dist --add-opens java.base/java.io=org.jruby.dist --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.security.cert=ALL-UNNAMED --add-opens=java.base/java.util.zip=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.util.regex=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/javax.crypto=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED"
56+
4157
# Rails 6.0 builds >= 2.5.0
4258
- rvm: jruby-head
4359
jdk: oraclejdk11

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ MAJOR =
2626
case RAILS_VERSION
2727
when /5-2-stable/
2828
5
29-
when /stable/, nil, false, ''
29+
when /master/, /stable/, nil, false, ''
3030
6
3131
else
3232
/(\d+)[\.|-]\d+/.match(RAILS_VERSION).captures.first.to_i

Gemfile-rails-dependencies

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version_file = File.expand_path("../.rails-version", __FILE__)
22

33
case version = ENV['RAILS_VERSION'] || (File.exist?(version_file) && File.read(version_file).chomp) || ''
4-
when /main/
4+
when /master/
55
gem "rails", :git => "https://github.com/rails/rails.git"
66
gem "arel", :git => "https://github.com/rails/arel.git"
77
gem "journey", :git => "https://github.com/rails/journey.git"

Rakefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,13 @@ RSpec::Core::RakeTask.new(:spec) do |t|
2727
end
2828

2929
Cucumber::Rake::Task.new(:cucumber) do |t|
30-
version = ENV.fetch("RAILS_VERSION", "~> 6.0.0")[/\d[\.-]\d/].tr('-', '.')
31-
if version == "main" || version.nil?
32-
version = Float::INFINITY
33-
end
30+
string_version = ENV.fetch("RAILS_VERSION", "~> 6.0.0")
31+
version =
32+
if string_version == "master" || string_version.nil?
33+
Float::INFINITY
34+
else
35+
string_version[/\d[\.-]\d/].tr('-', '.')
36+
end
3437
tags = []
3538

3639
if version.to_f >= 5.1

0 commit comments

Comments
 (0)