Permalink
Browse files

allow cucumber 4.x and run tests for each major version of cucumber

  • Loading branch information...
mathieujobin committed Oct 7, 2018
1 parent 3970158 commit 67b929a109845b91aff03a365406102467b82c26
Showing with 37 additions and 5 deletions.
  1. +8 −4 .travis.yml
  2. +7 −0 gemfiles/cucumber1.gemfile
  3. +7 −0 gemfiles/cucumber2.gemfile
  4. +7 −0 gemfiles/cucumber3.gemfile
  5. +7 −0 gemfiles/cucumber4.gemfile
  6. +1 −1 pickle.gemspec
@@ -1,5 +1,6 @@
language: ruby
dist: xenial
sudo: false
cache: bundler
rvm:
- 2.5.1
@@ -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
@@ -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'
@@ -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'
@@ -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'
@@ -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'
@@ -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"

0 comments on commit 67b929a

Please sign in to comment.