#!/bin/bash -l
set -o errexit
set -o nounset
set -o pipefail

DEPLOYMENT_NAME=$(cat cf-environments/name)
cf login -a "api.$DEPLOYMENT_NAME.$BOSH_LITE_DOMAIN_NAME" -u admin -p "$CF_PASSWORD" --skip-ssl-validation
cf create-org integration || true
cf create-space integration -o integration || true
cf target -o integration -s integration

./buildpacks-ci/scripts/start-docker

cd buildpack

export GOPATH=$PWD
export GOBIN=$PWD/.bin
export PATH=$GOBIN:$PATH

./scripts/unit.sh

CACHED=true  ./scripts/integration.sh
CACHED=false ./scripts/integration.sh

#!/bin/bash -l
set -o errexit
set -o nounset
set -o pipefail

DEPLOYMENT_NAME=$(cat cf-environments/name)
cf login -a "api.$DEPLOYMENT_NAME.$BOSH_LITE_DOMAIN_NAME" -u admin -p "$CF_PASSWORD" -o integration -s integration --skip-ssl-validation
cf create-org integration || true
cf create-space integration -o integration || true
cf target -o integration -s integration

./buildpacks-ci/scripts/start-docker

cd buildpack

export GOPATH=$PWD
export GOBIN=$PWD/.bin
export PATH=$GOBIN:$PATH

./scripts/unit.sh

CACHED=true  ./scripts/integration.sh
CACHED=false ./scripts/integration.sh

Set LTS cf login org/space
Set LTS cf login org/space

Signed-off-by: Dave Goddard <bfcdf3e6ca6cef45543bfbb57509c92aec9a39fb@goddard.id.au>
