#!/bin/bash -l

set -o errexit
set -o nounset
set -o pipefail

./cf-space/login

pushd brats
  if [ ! -z "$RUBYGEM_MIRROR" ]; then
    bundle config mirror.https://rubygems.org "${RUBYGEM_MIRROR}"
  fi
  bundle install

  if [ -z "${STACK-}" ]; then
    bundle exec rspec cf_spec/integration --tag language:"${LANGUAGE}" --tag buildpack_branch:"${BUILDPACK_BRANCH}"
  else
    bundle exec rspec -t "stack:$STACK" cf_spec/integration --tag language:"${LANGUAGE}" --tag buildpack_branch:"${BUILDPACK_BRANCH}"
  fi
popd

#!/bin/bash -l

set -o errexit
set -o nounset
set -o pipefail

./cf-space/login

pushd brats
  export BUNDLE_GEMFILE=$PWD/Gemfile

  if [ ! -z "$RUBYGEM_MIRROR" ]; then
    bundle config mirror.https://rubygems.org "${RUBYGEM_MIRROR}"
  fi
  bundle install

  if [ -z "${STACK-}" ]; then
    bundle exec rspec cf_spec/integration --tag language:"${LANGUAGE}" --tag buildpack_branch:"${BUILDPACK_BRANCH}"
  else
    bundle exec rspec -t "stack:$STACK" cf_spec/integration --tag language:"${LANGUAGE}" --tag buildpack_branch:"${BUILDPACK_BRANCH}"
  fi
popd

Set BUNDLE_GEMFILE for ruby brats
Set BUNDLE_GEMFILE for ruby brats

Signed-off-by: Jackson Feeny <c36636f229e2e0887bbecb5e06d5626818aed501@gmail.com>
