github.com/rakutentech/cli@v6.12.5-0.20151006231303-24468b65536e+incompatible/ci/scripts/unix-gats-concourse (about) 1 #!/usr/bin/env bash 2 3 function printStatus { 4 if [ $? -eq 0 ]; then 5 echo -e "\nPOP POP POP POP POP POP POP" 6 else 7 echo -e "\nMAN DOWN" 8 fi 9 } 10 11 trap printStatus EXIT 12 13 set -e -x 14 15 export CLI_DIR=$(cd $(dirname $0)/../.. && pwd) 16 17 export CF_RAISE_ERROR_ON_WARNINGS=true 18 19 export CONFIG_DIR=${PWD} 20 export GOPATH=${PWD}/gopath 21 export PATH=${GOPATH}/bin:${PATH} 22 export CF_RELEASE_DIR=${PWD}/cf-release 23 24 export API_ENDPOINT="https://api.${BOSH_LITE_IP}.xip.io" 25 export API="https://api.${BOSH_LITE_IP}.xip.io" 26 export APPS_DOMAIN="${BOSH_LITE_IP}.xip.io" 27 export CC_HOSTNAME="api.${BOSH_LITE_IP}.xip.io" 28 export BOSH_LITE_HOSTNAME="ubuntu@${BOSH_LITE_IP}" 29 30 ADMIN_USER="admin" ADMIN_PASSWORD="admin" \ 31 CF_USER="user" CF_PASSWORD="userpassword" \ 32 CF_ORG="cli-cats-org" CF_SPACE="cli-cats-space" \ 33 ${CLI_DIR}/ci/scripts/create-cats-config 34 35 GATSPATH=$PWD/gopath/src/github.com/cloudfoundry/GATS 36 GATS_GOPATH=${GATSPATH}/Godeps/_workspace 37 38 export GOPATH=${GATS_GOPATH}:$GOPATH 39 export PATH=${GATS_GOPATH}/bin:$PATH 40 41 # add prebuilt cf cli to the $PATH 42 mkdir ${GATS_GOPATH}/bin 43 install linux64-binary/cf-* ${GATS_GOPATH}/bin/cf 44 45 cd $GATSPATH 46 47 go install github.com/onsi/ginkgo/ginkgo 48 49 cp $CONFIG_DIR/config.json unix-gats.json 50 export CONFIG=`pwd`/unix-gats.json 51 52 ginkgo -r -slowSpecThreshold=120 ./gats