Skip to content

Commit

Permalink
Fix issue where bundler was installing plugin gems and project gems (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGreen authored Oct 14, 2022
1 parent a5bd16e commit 88355f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Add a build step using the test-summary plugin:
```yaml
- label: annotate
plugins:
- instacart/test-summary#v1.14.0:
- instacart/test-summary#v1.14.3:
inputs:
- label: rspec
artifact_path: artifacts/rspec*
Expand Down
6 changes: 1 addition & 5 deletions bin/setup
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#!/usr/bin/env bash
set -euo pipefail

PLUGIN_BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"

bundle install --quiet --gemfile="${PLUGIN_BASEDIR}/Gemfile"

# Do any other automated setup that you need to do here
bundle install --quiet
4 changes: 2 additions & 2 deletions hooks/post-artifact
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ trap on_failure ERR
PLUGIN_BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"

if [[ ${BUILDKITE_PLUGIN_TEST_SUMMARY_RUN_WITHOUT_DOCKER:-false} = true ]]; then
$PLUGIN_BASEDIR/bin/setup
$PLUGIN_BASEDIR/bin/run
BUNDLE_GEMFILE="$PLUGIN_BASEDIR/Gemfile" $PLUGIN_BASEDIR/bin/setup
BUNDLE_GEMFILE="$PLUGIN_BASEDIR/Gemfile" bundler exec $PLUGIN_BASEDIR/bin/run
else
TAG=$(git describe --tags --exact-match 2> /dev/null || true)

Expand Down

0 comments on commit 88355f5

Please sign in to comment.