Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test against new ruby and rails versions #92

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
language: ruby
sudo: false
rvm:
- 2.2.0
- 2.1.0
- 2.0.0
- 1.9.3
- 2.4.1
- 2.3.4
- 2.2.2
gemfile:
- gemfiles/Gemfile-rails.3.1.x
- gemfiles/Gemfile-rails.3.2.x
- gemfiles/Gemfile-rails.4.0.x
- gemfiles/Gemfile-rails.4.1.x
- gemfiles/Gemfile-rails.4.2.x
- gemfiles/Gemfile-rails.5.0.x
- gemfiles/Gemfile-rails.5.1.x
before_script:
- "cd test/dummy; rake db:migrate; rake db:test:prepare; cd ../.."
- "cd test/dummy; bundle exec rake db:migrate; bundle exec rake db:test:prepare; cd ../.."
notifications:
email: false
matrix:
exclude:
- rvm: 2.4.1
gemfile: gemfiles/Gemfile-rails.4.1.x
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source "https://rubygems.org"

gem "gretel", :path => ".."

gem "rails", "~> 3.1.0"
gem "rails", "~> 4.2.0"
gem "sqlite3"

# jquery-rails is used by the dummy application
Expand All @@ -17,3 +17,4 @@ gem "jquery-rails"
# gem 'debugger'

gem 'test-unit', '~> 3.0' if RUBY_VERSION >= "2.2"

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source "https://rubygems.org"

gem "gretel", :path => ".."

gem "rails", "~> 4.0.0"
gem "rails", "~> 5.0.0"
gem "sqlite3"

# jquery-rails is used by the dummy application
Expand All @@ -17,3 +17,4 @@ gem "jquery-rails"
# gem 'debugger'

gem 'test-unit', '~> 3.0' if RUBY_VERSION >= "2.2"

5 changes: 3 additions & 2 deletions gemfiles/Gemfile-rails.3.2.x → gemfiles/Gemfile-rails.5.1.x
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source "https://rubygems.org"

gem "gretel", :path => ".."

gem "rails", "~> 3.2.0"
gem "rails", github: "rails/rails", branch: "5-1-stable"
gem "sqlite3"

# jquery-rails is used by the dummy application
Expand All @@ -16,4 +16,5 @@ gem "jquery-rails"
# To use debugger
# gem 'debugger'

gem 'test-unit', '~> 3.0' if RUBY_VERSION >= "2.2"
gem 'test-unit', '~> 3.0' if RUBY_VERSION >= "2.2"

2 changes: 1 addition & 1 deletion gretel.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ Gem::Specification.new do |gem|
gem.test_files = gem.files.grep(%r{^test/})
gem.require_paths = ["lib"]

gem.add_dependency "rails", ">= 3.1.0"
gem.add_dependency "rails", ">= 4.1.0", "<= 5.1.0rc1"
gem.add_development_dependency "sqlite3"
end
2 changes: 1 addition & 1 deletion test/dummy/db/migrate/20130122163007_create_projects.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateProjects < ActiveRecord::Migration
class CreateProjects < ActiveRecord::Migration[4.1]
def change
create_table :projects do |t|
t.string :name
Expand Down
2 changes: 1 addition & 1 deletion test/dummy/db/migrate/20130122163051_create_issues.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateIssues < ActiveRecord::Migration
class CreateIssues < ActiveRecord::Migration[4.1]
def change
create_table :issues do |t|
t.string :title
Expand Down