Permalink
Browse files

skip spring and run db:migrate to eliminate a warning.

and install latest bundler
  • Loading branch information...
mathieujobin committed Aug 19, 2017
1 parent 2e2c1ac commit ac568f783817e0961b515b0e73c0de2669094708
Showing with 3 additions and 1 deletion.
  1. +1 −0 .travis.yml
  2. +2 −1 Rakefile.d/cucumber.rake
@@ -12,5 +12,6 @@ matrix:
fast_finish: true

script:
- gem install bundler
- bundle exec rake spec
- bundle exec rake cucumber
@@ -16,12 +16,13 @@ namespace :cucumber do
Bundler.with_clean_env do
gemfile = "cucumber_test_app/Gemfile"
rm_rf "cucumber_test_app"
sh "bundle exec rails new cucumber_test_app --skip-javascript --skip-sprockets"
sh "bundle exec rails new cucumber_test_app --skip-spring --skip-javascript --skip-sprockets"
sh "echo 'gem \"cucumber-rails\", :require => false' >> #{gemfile}"
sh "echo 'gem \"rspec-rails\", \"~>3.0\"' >> #{gemfile}"
sh "echo 'gem \"capybara\"' >> #{gemfile}"
sh "echo 'gem \"pickle\", path: \"#{__dir__}/..\"' >> #{gemfile}"
sh "bundle install --gemfile=#{gemfile}"
sh "(cd cucumber_test_app ; bundle exec rake db:migrate)"
end
end
end

0 comments on commit ac568f7

Please sign in to comment.