I am installing a Ruby CI server that pulls Rails git repositories from Github and installs gems using the Bundler. The CI server has the Gemfile itself (as does the Rails application). So far so good.
Now I first start installing the package after a new git pull, this works fine:
bundle install
Next, I list the installed gems and run the rake (to run the test suite):
bundle list
bundle exec rake
What is going to be there. These last 2 commands load the CI server's Gemfile, which is different from the one installed a few seconds ago. This Gemfile is in the parent directory that I want to run, so I assume that it first detects the βparentβ Gemfile and forgets to look for the correct one.
Any idea how I can tell the supplier to use the right gems?
source
share