Skip to content

Commit

Permalink
ci: ensure gem-test will work for java
Browse files Browse the repository at this point in the history
bundler's behavior is different between CRuby and JRuby, where the
JRuby impl (at least in the docker image) sets the env var
BUNDLE_GEMFILE in what I consider to be an inappropriate manner.

in this commit we also avoid an extra `bundle install` by reordering
operations and using `--skip-install`.
  • Loading branch information
flavorjones committed Mar 24, 2019
1 parent 9224158 commit 00d4023
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions concourse/tasks/gem-test/gem-install-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ popd

pushd nokogiri

export BUNDLE_GEMFILE=$(pwd)/Gemfile
bundle -v
bundle config

bundle add nokogiri --skip-install
bundle install --local || bundle install
bundle add nokogiri
bundle show nokogiri

bundle exec rake test

popd

0 comments on commit 00d4023

Please sign in to comment.