# This script gets a container ready to run our various tests in BuildKite echo "--- preparing..." export FORCE_FFI_YAJL="ext" export CHEF_LICENSE="accept-no-persist" export BUNDLE_GEMFILE="/workdir/Gemfile" # make sure we have the network tools in place for various network specs if [ -f /etc/debian_version ]; then touch /etc/network/interfaces fi # make sure we have the omnibus_overrides specified version of rubygems / bundler echo "--- Install proper rubygems / bundler" gem update --system $(grep rubygems omnibus_overrides.rb | cut -d'"' -f2) gem --version gem uninstall bundler -a -x || true gem install bundler -v $(grep :bundler omnibus_overrides.rb | cut -d'"' -f2) bundle --version rm -f .bundle/config echo +++ testing