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

Fix Travis build #134

Merged
merged 3 commits into from
Jan 20, 2018
Merged

Fix Travis build #134

merged 3 commits into from
Jan 20, 2018

Conversation

berkos
Copy link
Contributor

@berkos berkos commented Jan 19, 2018

The command appraisal install produces a different result locally vs Travis.

locally:

>> Reinstall Bundler into tmp/stage/vendor/bundle/ruby/2.3.0
Bundler and RubyGems.org are free for anyone to use, but maintaining them costs more than $25,000 USD every month. Help us cover those costs so that we can keep the gem ecosystem free for everyone: https://ruby.to/support-bundler\nSuccessfully installed bundler-1.14.0
1 gem installed
>> bundle check --gemfile='tmp/stage/gemfiles/breakfast.gemfile' || bundle install --gemfile='mp/stage/gemfiles/breakfast.gemfile' --retry 1
Resolving dependencies...
The Gemfile's dependencies are satisfied

vs

Travis:

>> bundle check --gemfile='/home/travis/build/berkos/appraisal/tmp/stage/gemfiles/breakfast.gemfile' || bundle install --gemfile='/home/travis/build/berkos/appraisal/tmp/stage/gemfiles/breakfast.gemfile' --retry 1
Resolving dependencies...
The Gemfile's dependencies are satisfied

Hypothesis is that newer versions of rvm in travis are installing the bundler as a default gem that cannot be uninstalled. relevant issue

Proposal is to check that bundle install and bundle exec appraisal install produces the same result rather than bundler is installed as a side effect.

@nickcharlton please let me know if I do miss some context.
Thanks!

Copy link
Member

@nickcharlton nickcharlton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great!

Thanks for tracking it down, I wasn't sure where to even start with this!


include_examples :gemfile_dependencies_are_satisfied


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor thing: could you remove this extra blank line?

Copy link
Contributor Author

@berkos berkos Jan 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I missed that 😅

map { |path| path.split('/').last }.
select { |gem| gem.include?(gem_name) }
map { |path| path.split('/').last }.
select { |gem| gem.include?(gem_name) }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have Hound/automatic style linting on here, but I'd prefer the indentation stayed the same here.

@nickcharlton
Copy link
Member

Thanks! I noticed the build failed on Ruby 1.9.3.

I wonder if here we should also pin the rake version (if that's possible in this scenario)?

@berkos
Copy link
Contributor Author

berkos commented Jan 19, 2018

I thought the same to be honest although during the building of the branch never failed which is interesting.
I think I can pin the rake version based in Ruby version just to be sure. 👍

@nickcharlton
Copy link
Member

Great! Thanks for following up with that. I'll merge this now!

@nickcharlton nickcharlton merged commit a00e81c into thoughtbot:master Jan 20, 2018
@berkos berkos deleted the fix_travis_build branch January 20, 2018 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants