Skip to content

Commit c30c658

Browse files
committed
Use explicit gemfile in bundle exec in CI build
These calls to `bundle exec` all come after a call to `bundle install --gemfile=xxx` and the latter will only take effect if we use `bundle exec --gemfile=xxx` (or if the `BUNDLE_GEMFILE` is set). In practice all these cases are using the default `Gemfile`, so these changes don't actually have any effect. However, I think making things explicit makes the code easier to follow.
1 parent 2b05e09 commit c30c658

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: .circleci/config.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
condition:
2828
equal: [ "Gemfile", << parameters.gemfile >>]
2929
steps:
30-
- run: bundle exec rake test
30+
- run: bundle exec --gemfile=<< parameters.gemfile >> rake test
3131
- when:
3232
condition:
3333
matches:
@@ -48,7 +48,7 @@ jobs:
4848
- equal: [ "ruby:latest", << parameters.docker-image >> ]
4949
- equal: [ "Gemfile", << parameters.gemfile >>]
5050
steps:
51-
- run: bundle exec rake test:performance
51+
- run: bundle exec --gemfile=<< parameters.gemfile >> rake test:performance
5252
- run: MOCHA_GENERATE_DOCS=1 bundle install --gemfile=<< parameters.gemfile >>
5353
- run: MOCHA_GENERATE_DOCS=1 rake yardoc
5454
lint:
@@ -60,7 +60,7 @@ jobs:
6060
- run: gem --version
6161
- run: bundle --version
6262
- run: bundle install --gemfile=Gemfile
63-
- run: bundle exec rake lint
63+
- run: bundle exec --gemfile=Gemfile rake lint
6464

6565
workflows:
6666
build-all:

0 commit comments

Comments
 (0)