diff --git a/playbooks/run-beaker-tests.yaml b/playbooks/run-beaker-tests.yaml index 4d4fc8ebd..c9131dd58 100644 --- a/playbooks/run-beaker-tests.yaml +++ b/playbooks/run-beaker-tests.yaml @@ -44,16 +44,17 @@ fi mkdir .bundled_gems export GEM_HOME=`pwd`/.bundled_gems + export GEM_BIN_DIR=$GEM_HOME/bin if [ -f Gemfile ]; then ruby <&1 + $GEM_BIN_DIR/bundle install --without system_tests --retry 3 + $GEM_BIN_DIR/bundle exec rake lint 2>&1 if [ -f metadata.json ]; then - $GEM_HOME/bin/bundle exec rake metadata_lint 2>&1 + $GEM_BIN_DIR/bundle exec rake metadata_lint 2>&1 fi else gem install rake -n ./.bundled_gems/ --no-ri --no-rdoc --no-user-install diff --git a/playbooks/run-syntax-tests.yaml b/playbooks/run-syntax-tests.yaml index 507d40430..baf9df639 100644 --- a/playbooks/run-syntax-tests.yaml +++ b/playbooks/run-syntax-tests.yaml @@ -5,18 +5,19 @@ export PUPPET_GEM_VERSION='~> {{ puppet }}' mkdir .bundled_gems export GEM_HOME=`pwd`/.bundled_gems + export GEM_BIN_DIR=$GEM_HOME/bin ruby <