This lets me test our docker setup locally much quicker as I don't
have to time out on the aws s3 push/pull steps.
Signed-off-by: Ryan Davis <zenspider@chef.io>
+ This adds RESET_BUNDLE_CACHE so we can forcibly reset.
+ Now computes the sha against the Gemfile.lock.
+ Other minor fixes as pointed out by shellcheck.
Signed-off-by: Ryan Davis <zenspider@chef.io>
I'm not sure why we're doing this ourselves instead of using
buildkite's own artifact caching, but that's fine.
This speeds up the "bundle install" phase from ~3m to ~20s.
Signed-off-by: Ryan Davis <zenspider@chef.io>
Unfortunately, we have a lot of failing tests when we run as a
non-root user and the files are owned by root. We can't chmod the
checkout to the non-root user as it is a shared mount in docker and
that's not allowed to the outside world.
Signed-off-by: Ryan Davis <zenspider@chef.io>
Travis used to update rubygems to the latest version before doing
anything else. We don't on BK and I just found a rubygems specific bug
that would have been exposed by this.
Signed-off-by: Ryan Davis <zenspider@chef.io>