Skip to content

Commit

Permalink
Merge pull request #204 from fdoxyz/poltergeist-feature-spec-revamp
Browse files Browse the repository at this point in the history
Test Suite Revamp - Cart Checkout flow update & Poltergeist debug
  • Loading branch information
bbonislawski authored Jun 22, 2018
2 parents 6b0e85b + ef31ca8 commit 4f9a187
Show file tree
Hide file tree
Showing 8 changed files with 175 additions and 95 deletions.
31 changes: 25 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,45 @@
sudo: required
dist: trusty

before_script: "bundle install"
language: ruby

script:
- bundle exec rake test_app
- bundle exec rake spec
- travis_retry bundle exec rake spec

env:
- DB=mysql
- DB=postgres

language: ruby

rvm:
- 2.3.1
- 2.2.7
- 2.2.10
- 2.3.7
- 2.4.4
- 2.5.1

gemfile:
- gemfiles/spree_3_1.gemfile
- gemfiles/spree_3_2.gemfile
- gemfiles/spree_3_3.gemfile
- gemfiles/spree_3_4.gemfile
- gemfiles/spree_3_5.gemfile
- gemfiles/spree_3_6.gemfile
- gemfiles/spree_master.gemfile

before_install:
- mysql -u root -e "GRANT ALL ON *.* TO 'travis'@'%';"

matrix:
exclude:
- rvm: 2.5.1
gemfile: gemfiles/spree_3_1.gemfile
- rvm: 2.5.1
gemfile: gemfiles/spree_3_2.gemfile
- rvm: 2.5.1
gemfile: gemfiles/spree_3_3.gemfile
- rvm: 2.5.1
gemfile: gemfiles/spree_3_4.gemfile
- rvm: 2.5.1
gemfile: gemfiles/spree_3_5.gemfile
allow_failures:
- gemfile: gemfiles/spree_master.gemfile
17 changes: 17 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
appraise 'spree-3-1' do
gem 'spree', '~> 3.1.0'
gem 'activerecord', '~> 4.2.10'
gem 'mysql2', '~> 0.4.10'
gem 'rails_test_params_backport', group: :test
end

Expand All @@ -13,6 +15,21 @@ appraise 'spree-3-3' do
gem 'rails-controller-testing'
end

appraise 'spree-3-4' do
gem 'spree', '~> 3.4.0'
gem 'rails-controller-testing'
end

appraise 'spree-3-5' do
gem 'spree', '~> 3.5.0'
gem 'rails-controller-testing'
end

appraise 'spree-3-6' do
gem 'spree', '~> 3.6.0'
gem 'rails-controller-testing'
end

appraise 'spree-master' do
gem 'spree', github: 'spree/spree', branch: 'master'
gem 'rails-controller-testing'
Expand Down
2 changes: 2 additions & 0 deletions gemfiles/spree_3_1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
source "https://rubygems.org"

gem "spree", "~> 3.1.0"
gem "activerecord", "~> 4.2.10"
gem "mysql2", "~> 0.4.10"
gem "rails_test_params_backport", group: :test

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

source "https://rubygems.org"

gem "spree", "~> 3.4.0"
gem "rails-controller-testing"

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

source "https://rubygems.org"

gem "spree", "~> 3.5.0"
gem "rails-controller-testing"

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

source "https://rubygems.org"

gem "spree", "~> 3.6.0"
gem "rails-controller-testing"

gemspec path: "../"
Loading

0 comments on commit 4f9a187

Please sign in to comment.