ddb24d6a06
The --no-ri and --no-rdoc option is removed in later versions. Change-Id: I199e980fe13d4932e7d3f9f484ea3dc25e58f01c
47 lines
1.7 KiB
YAML
47 lines
1.7 KiB
YAML
- hosts: all
|
|
tasks:
|
|
- shell:
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master}
|
|
# Workaround for puppet-ceph, where we need to checkout
|
|
# puppet-openstack-integration from stable/pike when working on
|
|
# stable/jewel.
|
|
# Ceph Jewel works with Newton to Pike
|
|
if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then
|
|
ZUUL_BRANCH_REAL='stable/pike'
|
|
fi
|
|
if [ -d /home/zuul/src/opendev.org/openstack/puppet-openstack-integration ]; then
|
|
[ ! -d puppet-openstack-integration ] && mkdir puppet-openstack-integration
|
|
cp -dR /home/zuul/src/opendev.org/openstack/puppet-openstack-integration/. puppet-openstack-integration
|
|
else
|
|
git clone -b $ZUUL_BRANCH_REAL https://opendev.org/openstack/puppet-openstack-integration puppet-openstack-integration
|
|
fi
|
|
executable: /bin/bash
|
|
chdir: '{{ ansible_user_dir }}/workspace'
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
|
|
|
- include_role:
|
|
name: bindep
|
|
vars:
|
|
bindep_dir: "src/opendev.org/openstack/puppet-openstack-integration"
|
|
|
|
- name: Create folder for gems
|
|
file:
|
|
path: "{{ ansible_user_dir }}/workspace/puppet-openstack-integration/.bundled_gems"
|
|
state: directory
|
|
|
|
- name: Install bundler
|
|
shell:
|
|
cmd: |
|
|
ruby <<EOF
|
|
cmd = 'gem install bundler --no-document --verbose --no-user-install'
|
|
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0') then
|
|
cmd += ' -v 1.17.3'
|
|
end
|
|
system(cmd)
|
|
EOF
|
|
environment:
|
|
GEM_HOME: "{{ ansible_user_dir }}/workspace/puppet-openstack-integration/.bundled_gems"
|