puppet-openstack-integration/playbooks/run-syntax-tests.yaml
Takashi Kajinami c03f2eaf7a Unpin bundler
The bundler library has been pinned to 2.2.11 but this is quite old.
This attempts to remove that pin and use the latest version instead.

Depends-on: https://review.opendev.org/c/openstack/puppet-openstack_spec_helper/+/900787
Change-Id: I1575f435a1248762602c376a2fafca16b0a7958d
2023-12-19 07:56:57 +00:00

17 lines
580 B
YAML

- hosts: all
tasks:
- shell:
cmd: |
export PUPPET_GEM_VERSION='~> {{ puppet }}'
mkdir .bundled_gems
export GEM_HOME=`pwd`/.bundled_gems
export GEM_BIN_DIR=$GEM_HOME/bin
ruby <<EOF
cmd = 'gem install bundler --no-document --verbose --no-user-install --bindir=${GEM_BIN_DIR}'
system(cmd)
EOF
$GEM_BIN_DIR/bundle install --retry 3
$GEM_BIN_DIR/bundle exec rake syntax
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'