puppet-openstack-integration/playbooks/run-syntax-tests.yaml
Mohammed Naser bde052c8e4
Add Zuul V3 support for Puppet Jobs
This patch moves in the Puppet OpenStack integration
jobs as well as the module tests in-repo.

Depends-On: Ib96ee354cbf9c88f9265f5743a97b2d013addc70
Change-Id: Idd846c569a6e067125e130f189be9ae8ffba1646
2017-09-28 22:37:09 -04:00

16 lines
595 B
YAML

- hosts: all
tasks:
- shell:
cmd: |
export PUPPET_GEM_VERSION='~> {{ puppet }}'
mkdir .bundled_gems
export GEM_HOME=`pwd`/.bundled_gems
gem install bundler --no-rdoc --no-ri --verbose
$GEM_HOME/bin/bundle install --retry 3
# FUTURE_PARSER=yes is only supported by Puppet 3.x
if [ "{{ puppet }}" -lt "4" ]; then
export FUTURE_PARSER=yes
fi
$GEM_HOME/bin/bundle exec rake syntax
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'