Skip to content

Commit

Permalink
Test with multiple redis versions
Browse files Browse the repository at this point in the history
  • Loading branch information
reneklacan committed Nov 24, 2016
1 parent 06dba03 commit 7330655
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ coverage
rdoc
pkg
*.gem
gemfiles/*.lock

## PROJECT::SPECIFIC
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ rvm:
- jruby-19mode
env:
- USE_REAL_REDIS=true
gemfile:
- gemfiles/redis_3.gemfile
- gemfiles/redis_4.gemfile
script:
- bundle exec rspec
7 changes: 7 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
appraise "redis-3" do
gem "redis", "~> 3.3.2"
end

appraise "redis-4" do
gem "redis", "4.0.0.rc1"
end
7 changes: 7 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ PATH
GEM
remote: https://rubygems.org/
specs:
appraisal (2.1.0)
bundler
rake
thor (>= 0.14.0)
codeclimate-test-reporter (0.4.8)
simplecov (>= 0.7.1, < 1.0.0)
diff-lcs (1.2.5)
docile (1.1.5)
fakeredis (0.5.0)
redis (~> 3.0)
json (1.8.3)
rake (11.3.0)
redis (3.2.2)
rspec (3.4.0)
rspec-core (~> 3.4.0)
Expand All @@ -32,11 +37,13 @@ GEM
json (~> 1.8)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.0)
thor (0.19.1)

PLATFORMS
ruby

DEPENDENCIES
appraisal
bundler (>= 1.0.0)
codeclimate-test-reporter
fakeredis
Expand Down
13 changes: 13 additions & 0 deletions gemfiles/redis_3.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This file was generated by Appraisal

source "https://rubygems.org"

if RUBY_VERSION >= '2.0'
gem "json"
else
gem "json", "~> 1.8.3"
end

gem "redis", "~> 3.3.2"

gemspec :path => "../"
13 changes: 13 additions & 0 deletions gemfiles/redis_4.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This file was generated by Appraisal

source "https://rubygems.org"

if RUBY_VERSION >= '2.0'
gem "json"
else
gem "json", "~> 1.8.3"
end

gem "redis", "4.0.0.rc1"

gemspec :path => "../"
1 change: 1 addition & 0 deletions rollout.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]

s.add_development_dependency "rspec"
s.add_development_dependency "appraisal"
s.add_development_dependency "bundler", ">= 1.0.0"
s.add_development_dependency "redis"
s.add_development_dependency "fakeredis"
Expand Down

0 comments on commit 7330655

Please sign in to comment.