Skip to content

Update .travis.yml #520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ sudo: false
rvm:
- 1.9.3 # when removed, get rid of the before_script hack and also the one in application_generator.rb
- 2.0.0
- 2.1.9
- 2.2.5
- 2.3.1
- 2.1.10
- 2.2.7
- 2.3.4
- 2.4.1
- ruby-head
env:
- RAILS_VERSION="~> 4.2.0"
- RAILS_VERSION="~> 5.0.0"
Expand All @@ -16,8 +18,12 @@ matrix:
env: RAILS_VERSION="~> 5.0.0"
- rvm: 2.0.0
env: RAILS_VERSION="~> 5.0.0"
- rvm: 2.1.9
- rvm: 2.1.10
env: RAILS_VERSION="~> 5.0.0"
allow_failures:
- rvm: ruby-head
fast_finish: true
before_script:
- "[ $TRAVIS_RUBY_VERSION = \"1.9.3\" ] && travis_retry gem install mime-types --version \"~> 2\" || true"
- "[ $TRAVIS_RUBY_VERSION = \"1.9.3\" -o $TRAVIS_RUBY_VERSION = \"2.0.0\" ] && travis_retry gem install nokogiri --version \"~> 1.6.8\" || true"
- travis_retry gem install rails --version "$RAILS_VERSION"
5 changes: 5 additions & 0 deletions lib/spring/test/application_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ def install_spring

build_and_install_gems

# TO prevent nokogiri install error in application.bundle.
if RUBY_VERSION < "2.1.0"
append_to_file(application.gemfile, "gem 'nokogiri', '~> 1.6.8'")
end

application.bundle

FileUtils.rm_rf application.path("bin")
Expand Down