Skip to content

Commit

Permalink
ci: gem-test: ensure we don't use local files
Browse files Browse the repository at this point in the history
[skip ci]

despite best efforts to date, `rake test` would still load the local
`lib` files, likely because hoe+minitest runs the test command as
`ruby -Ilib:test:.`

related to #1971
  • Loading branch information
flavorjones committed Jan 25, 2020
1 parent f8a65f6 commit 7696e2a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion concourse/tasks/gem-test/gem-install-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ pushd nokogiri
bundle install --local || bundle install
bundle info nokogiri

bundle exec rake test
bundle exec rake test:cmd > run-test
rm -rf lib ext # ensure we can't use the local files
bundle exec bash run-test

popd

0 comments on commit 7696e2a

Please sign in to comment.