-
Notifications
You must be signed in to change notification settings - Fork 356
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 - run bundler with --no-deployment #1606
Conversation
to prevent breakage coming from inconsistencies in Gemfile.lock
Checked commit https://github.com/himdel/manageiq-ui-classic/commit/82e8db494001f63c0e3613a670d9ca17b49e5689 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
Merging, travis failures are not related |
More info.. The failure got exposed by ManageIQ/manageiq#14525, but would happen any time there's a relative path to gems involved.. Since the first So.. |
Why no-deployment over just fully qualifying the path? no-deployment just seems very unclear from an outside-in perspective. cc @jrafanie |
@Fryguy Part of the explanation can be found in the bundler ticket I opened up: The other end of the story is that |
Also, it seems like |
@himdel I guess I don't understand why we'd have Gemfile.lock if it's .gitignored. I don't see Gemfile.lock in git. I don't understand. |
@jrafanie |
Whether or not the second |
👍 .. also, I'm thinking if we actually need that second But I'm not entirely sure... you definitely need a |
Just in case when I mispoke yesterday in gitter confused anyone, when you run So yea, @himdel is probably right and we should be able to remove travis' |
Before the code was extracted to bin/setup (in ManageIQ/manageiq), we had overridden install. So, since it moved out, then yes, it should be dropped...it should not bundle install twice.
that's fine |
Interestingly enough, ManageIQ/manageiq itself doesn't use bin/setup in the .travis.yml. I'm debating whether it should or shouldn't |
Relative pathing can have problems if the pwd is not the manageiq directory. This ensures the correct path. Related: - ManageIQ#14525 - ManageIQ/manageiq-ui-classic#1606 - ManageIQ/manageiq-content#136
According to the docs, travis runs bundler with
--deployment
whenGemfile.lock
exists. It does, becausebin/setup
runsbundle install
before that.Which was fine until the combination of
rm Gemfile.lock ; bundle install ; bundle install --deployment
started failing (You are trying to install in deployment mode after changing your Gemfile
...) :).I don't think we want
--deployment
since we're gitignoringGemfile.lock
.This fixes travis in the sense that it gets to running the specs. Not quite enough to make it green, but I'd rather keep the PRs separate.