
... to fix the stuck observed in Puppet 8 jobs. Change-Id: I2208c02586aa43d29db1fa7ac43b650ab78aa97d
22 lines
553 B
Bash
22 lines
553 B
Bash
#!/bin/bash
|
|
#
|
|
# functions - puppet-openstack_spec_helper specific functions
|
|
#
|
|
|
|
prepare_environment() {
|
|
rm -rf puppet-whazz default-config.yaml
|
|
mkdir -p .bundled_gems
|
|
export GEM_HOME=`pwd`/.bundled_gems
|
|
export GEM_BIN_DIR=$GEM_HOME/bin
|
|
ruby <<EOF
|
|
cmd = 'gem install bundler --no-document --verbose --bindir=${GEM_BIN_DIR}'
|
|
system(cmd)
|
|
EOF
|
|
|
|
# Build fake module
|
|
OS_NEW_MODULE_TEST=yes bash -x ./contrib/bootstrap.sh whazz dummy
|
|
cd puppet-whazz/x/puppet-modulesync-configs/modules/cookiecutter/puppet-whazz
|
|
|
|
$GEM_HOME/bin/bundle install
|
|
}
|