github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+incompatible/ci/cli/tasks/integration-linux.yml (about) 1 --- 2 platform: linux 3 4 image_resource: 5 type: docker-image 6 source: 7 repository: cfcli/cli-base 8 9 inputs: 10 - name: cli 11 - name: cli-integration 12 path: go/src/code.cloudfoundry.org/cli 13 - name: cf-cli-binaries 14 - name: bosh-lite-lock 15 - name: vars-store 16 17 params: 18 CF_CLI_EXPERIMENTAL: false 19 CF_INT_CLIENT_ID: 20 CF_INT_CLIENT_SECRET: 21 CF_INT_DOCKER_IMAGE: 22 CF_INT_DOCKER_USERNAME: 23 CF_INT_DOCKER_PASSWORD: 24 25 run: 26 path: bash 27 args: 28 - -c 29 - | 30 set -e 31 32 ENV=$(cat bosh-lite-lock/name | cut -d "." -f 1) 33 export CF_PASSWORD=$(bosh int vars-store/ci/infrastructure/$ENV/deployment-vars.yml --path /cf_admin_password) 34 35 set -x 36 37 domain=$(cat bosh-lite-lock/name) 38 export CF_API="https://api.${domain}" 39 export CF_DIAL_TIMEOUT=15 40 41 export GOPATH=$PWD/go 42 export PATH=$GOPATH/bin:$PATH 43 44 pushd cf-cli-binaries 45 tar xvzf cf-cli-binaries.tgz 46 chmod +x cf-cli_linux_x86-64 47 mkdir -p $GOPATH/bin 48 mv cf-cli_linux_x86-64 $GOPATH/bin/cf 49 popd 50 51 cd $GOPATH/src/code.cloudfoundry.org/cli 52 53 if [ ! $(which ginkgo) ];then 54 echo -e "\n Building ginkgo..." 55 pushd vendor/github.com/onsi/ginkgo/ginkgo 56 go install 57 popd 58 fi 59 60 ginkgo -r -nodes=16 -flakeAttempts=2 -slowSpecThreshold=60 -randomizeAllSpecs integration/isolated integration/plugin integration/push 61 ginkgo -r -flakeAttempts=2 -slowSpecThreshold=60 -randomizeAllSpecs integration/global