summaryrefslogtreecommitdiff
path: root/.expeditor/scripts/bk_container_prep.sh
blob: 949f75c0d376758987aba5df8e0786c42d1bae3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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 bundler"
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 "+++ Run tests"