puppet-openstack-integration/playbooks/run-unit-tests.yaml
ZhongShengping 6ce2fca854 Add unit jobs in zuul v3
Change-Id: I3d21011beb57e66cce8d18efb9f603f218258ee2
2017-10-31 08:36:25 +08:00

15 lines
560 B
YAML

- hosts: all
tasks:
- shell:
cmd: |
if [ "{{ puppet_gem_version }}" != "latest" ]; then
export PUPPET_GEM_VERSION='~> {{ puppet_gem_version }}.0'
fi
mkdir .bundled_gems
export GEM_HOME=`pwd`/.bundled_gems
gem install bundler --no-rdoc --no-ri --verbose
$GEM_HOME/bin/bundle install --retry 3
$GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation'
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'