Skip to content

Commit

Permalink
Add test for Rails 5.0, 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Feb 23, 2018
1 parent 0cb52e2 commit 1aa5c3e
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Expand Up @@ -8,6 +8,11 @@ services:
rvm:
- 2.3.0

gemfile:
- gemfiles/Gemfile-4-2
- gemfiles/Gemfile-5-1
- gemfiles/Gemfile-5-2

before_script:
- bundle install
- RAILS_ENV=test bundle exec rake db:create
Expand Down
5 changes: 1 addition & 4 deletions Gemfile
Expand Up @@ -3,7 +3,4 @@ source "https://rubygems.org"

gemspec
gem "rails", "~> 5.2.0.rc"
gem "mysql2"
gem "factory_girl"
gem "simplecov"
gem "codecov"

2 changes: 1 addition & 1 deletion Gemfile.lock
Expand Up @@ -2,7 +2,7 @@ PATH
remote: .
specs:
action-store (0.3.3)
rails (~> 5, >= 4.2.0)
rails (~> 5)

GEM
remote: https://rubygems.org/
Expand Down
7 changes: 6 additions & 1 deletion action-store.gemspec
Expand Up @@ -16,5 +16,10 @@ Gem::Specification.new do |s|
s.homepage = "https://github.com/rails-engine/action-store"
s.license = "MIT"

s.add_dependency "rails", ">= 4.2.0", "~> 5"
s.add_dependency "rails", "~> 5"

s.add_development_dependency "mysql2"
s.add_development_dependency "factory_girl"
s.add_development_dependency "simplecov"
s.add_development_dependency "codecov"
end
5 changes: 5 additions & 0 deletions gemfiles/Gemfile-5-0
@@ -0,0 +1,5 @@
source 'https://rubygems.org'

gemspec path: '..'

gem 'rails', '~> 5.0.0'
5 changes: 5 additions & 0 deletions gemfiles/Gemfile-5-1
@@ -0,0 +1,5 @@
source 'https://rubygems.org'

gemspec path: '..'

gem 'rails', '~> 5.1.0'
5 changes: 5 additions & 0 deletions gemfiles/Gemfile-5-2
@@ -0,0 +1,5 @@
source 'https://rubygems.org'

gemspec path: '..'

gem 'rails', '~> 5.2.0.rc'

0 comments on commit 1aa5c3e

Please sign in to comment.