diff --git a/playbooks/run-beaker-tests.yaml b/playbooks/run-beaker-tests.yaml index f64a93eae..414177d29 100644 --- a/playbooks/run-beaker-tests.yaml +++ b/playbooks/run-beaker-tests.yaml @@ -48,16 +48,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 1037ae37b..4ef2a398f 100644 --- a/playbooks/run-syntax-tests.yaml +++ b/playbooks/run-syntax-tests.yaml @@ -5,14 +5,15 @@ export PUPPET_GEM_VERSION='~> {{ puppet }}' mkdir .bundled_gems export GEM_HOME=`pwd`/.bundled_gems + export GEM_BIN_DIR=$GEM_HOME/bin ruby <