Tobias Urdin 04d7f3fa10 Replace gem --no-ri and --no-rdoc with --no-document
Change-Id: I0d3b0c095beb3771a699c5485ecd3b3a2c0a31f4
2020-09-02 14:17:22 +02:00

25 lines
633 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}'
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0') then
cmd += ' -v 1.17.3'
end
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/puppet-whazz
$GEM_HOME/bin/bundle install
}