Skip to content

Commit

Permalink
allow cucumber 4.x and run tests for each major version of cucumber
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieujobin committed Oct 7, 2018
1 parent 3970158 commit 67b929a
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 5 deletions.
12 changes: 8 additions & 4 deletions .travis.yml
@@ -1,5 +1,6 @@
language: ruby
dist: xenial
sudo: false
cache: bundler
rvm:
- 2.5.1
Expand All @@ -12,7 +13,10 @@ matrix:
- rvm: ruby-head
fast_finish: true

script:
- gem install bundler
- bundle exec rake spec
- bundle exec rake cucumber
script: bundle exec rspec -f progress --force-color --color --tty

gemfile:
- gemfiles/cucumber1.gemfile
- gemfiles/cucumber2.gemfile
- gemfiles/cucumber3.gemfile
- gemfiles/cucumber4.gemfile
7 changes: 7 additions & 0 deletions gemfiles/cucumber1.gemfile
@@ -0,0 +1,7 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in venuenext_payments.gemspec
gemspec path: '../'

gem 'coveralls', require: false
gem 'cucumber', '~> 1.0'
7 changes: 7 additions & 0 deletions gemfiles/cucumber2.gemfile
@@ -0,0 +1,7 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in venuenext_payments.gemspec
gemspec path: '../'

gem 'coveralls', require: false
gem 'cucumber', '~> 2.0'
7 changes: 7 additions & 0 deletions gemfiles/cucumber3.gemfile
@@ -0,0 +1,7 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in venuenext_payments.gemspec
gemspec path: '../'

gem 'coveralls', require: false
gem 'cucumber', '~> 3.0'
7 changes: 7 additions & 0 deletions gemfiles/cucumber4.gemfile
@@ -0,0 +1,7 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in venuenext_payments.gemspec
gemspec path: '../'

gem 'coveralls', require: false
gem 'cucumber', '~> 4.0'
2 changes: 1 addition & 1 deletion pickle.gemspec
Expand Up @@ -19,7 +19,7 @@ Gem::Specification.new do |s|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.require_paths = ["lib"]

s.add_dependency "cucumber", ">=0.8", "< 4.0"
s.add_dependency "cucumber", ">=0.8", "< 5.0"
s.add_dependency "rake"

s.add_development_dependency "rack"
Expand Down

0 comments on commit 67b929a

Please sign in to comment.