Skip to content
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

Travis CI / Bundler 2.0 not happy #162

Closed
danmayer opened this issue Jan 6, 2019 · 5 comments
Closed

Travis CI / Bundler 2.0 not happy #162

danmayer opened this issue Jan 6, 2019 · 5 comments
Labels

Comments

@danmayer
Copy link
Owner

danmayer commented Jan 6, 2019

I have all the tests passing except 2.3 as Travis-CI doesn't seem to let us install bundler 1.3.x but keeps trying to use 2.0...

https://travis-ci.org/danmayer/coverband/builds/476105586

I followed directions here and it works for everything except Ruby 2.3

https://docs.travis-ci.com/user/languages/ruby/#bundler-20

@danmayer danmayer added the bug label Jan 6, 2019
@danmayer
Copy link
Owner Author

danmayer commented Jan 6, 2019

blah I tried a few more things... and it might be easier to update to bundler 2.0, but then all the Rails 4 tests fail...

https://travis-ci.org/danmayer/coverband/builds/476116789

a bit of a catch 22, I think we should be able to keep using bundler 1.3 but something with Ruby 2.3 on Travis CI won't let me downgrade bundler from the 2.0.x line

any ideas @kbaum

@kbaum
Copy link
Collaborator

kbaum commented Jan 7, 2019

Judging by the errors, it looks like rails 4 flat out does not support bundler 2.0. Can't make much sense of why ruby 2.3 doesn't work with bundler 1.3.x. Feel like it might be a little early to drop support for rails 4.x?

@kbaum
Copy link
Collaborator

kbaum commented Jan 7, 2019

Looks to me like it's a problem with travis:

image

Some options:

  1. Try circle
  2. Drop ruby 2.3 from the build
  3. Drop rails 4.X from the build

Circle might be some work but might be worth the effort? Dropping ruby-2.3 feels reasonable too considering we are now at 2.6.

@danmayer
Copy link
Owner Author

danmayer commented Jan 8, 2019

OK it took way longer than it should have and it would have been cleaner to do my tests on a branch... but I got everything passing with bundler 1.17.3 on travis-ci...

https://travis-ci.org/danmayer/coverband/builds/476675778

travis-CI file:

before_install:
  - rm /home/travis/.rvm/gems/ruby-2.3.7@global/specifications/bundler-2.0.1.gemspec || true
  - gem uninstall bundler || true
  - gem install bundler -v '1.17.3'
  - bundler --version

cleaner version: https://travis-ci.org/danmayer/coverband/builds/476677975

This had some good tips but the find trick didn't work for me: travis-ci/travis-ci#8717

@danmayer danmayer closed this as completed Jan 8, 2019
@kbaum
Copy link
Collaborator

kbaum commented Jan 8, 2019

Well done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants