#!/usr/bin/env bash

set -e

my_dir="$( cd $(dirname $0) && pwd )"
release_dir="$( cd ${my_dir} && cd ../.. && pwd )"
workspace_dir="$( cd ${release_dir} && cd ../../../.. && pwd )"

export GOPATH=${workspace_dir}
export PATH=${GOPATH}/bin:${PATH}

: ${access_key_id:?}
: ${secret_access_key:?}
: ${bucket_name:?}
: ${s3_endpoint_host:?}
: ${s3_endpoint_port:?}

export ACCESS_KEY_ID=${access_key_id}
export SECRET_ACCESS_KEY=${secret_access_key}
export BUCKET_NAME=${bucket_name}
export S3_HOST=${s3_endpoint_host}
export S3_PORT=${s3_endpoint_port}

pushd ${release_dir} > /dev/null
  ginkgo -r -focus="S3 COMPATIBLE" integration/
popd > /dev/null

#!/usr/bin/env bash

set -e

my_dir="$( cd $(dirname $0) && pwd )"
release_dir="$( cd ${my_dir} && cd ../.. && pwd )"
workspace_dir="$( cd ${release_dir} && cd ../../../.. && pwd )"

export GOPATH=${workspace_dir}
export PATH=${GOPATH}/bin:${PATH}

: ${access_key_id:?}
: ${secret_access_key:?}
: ${bucket_name:?}
: ${s3_endpoint_host:?}
: ${s3_endpoint_port:?}

export ACCESS_KEY_ID=${access_key_id}
export SECRET_ACCESS_KEY=${secret_access_key}
export BUCKET_NAME=${bucket_name}
export S3_HOST=${s3_endpoint_host}
export S3_PORT=${s3_endpoint_port}

pushd ${release_dir} > /dev/null
  go get ./vendor/github.com/onsi/ginkgo/ginkgo
  ginkgo -r -focus="S3 COMPATIBLE" integration/
popd > /dev/null

Install ginkgo from vendor for integration tests
Install ginkgo from vendor for integration tests

[#156582073](https://www.pivotaltracker.com/story/show/156582073)

Signed-off-by: Danny Berger <8efccf38e9d8f361e1973ad644e1b1e50ad8ecfe@pivotal.io>
