github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/ci/cli-v7/tasks/integration-linux-bosh-lite.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-env-info 15 16 params: 17 CF_CLI_EXPERIMENTAL: false 18 CF_INT_CLIENT_ID: 19 CF_INT_CLIENT_SECRET: 20 CF_INT_DOCKER_IMAGE: 21 CF_INT_DOCKER_USERNAME: 22 CF_INT_DOCKER_PASSWORD: 23 CF_INT_IGNORE_API_VERSION_CHECK: 24 FLAKE_ATTEMPTS: 2 25 TAGS: 'V7' 26 NODES: 16 27 28 run: 29 path: bash 30 args: 31 - -c 32 - | 33 set -e 34 35 ENV=$(cat bosh-lite-env-info/name | cut -d "." -f 1) 36 export SSL_CERT_DIR=/tmp/cert_dir 37 mkdir -p $SSL_CERT_DIR 38 39 source bosh-lite-env-info/metadata 40 credhub login --skip-tls-validation 41 export CF_INT_PASSWORD=$(credhub get -n /bosh-lite/cf/cf_admin_password | bosh interpolate --path /value -) 42 43 export CF_INT_OIDC_USERNAME="admin-oidc" 44 export CF_INT_OIDC_PASSWORD=$(credhub get -n /bosh-lite/cf/uaa_oidc_admin_password | bosh interpolate --path /value -) 45 credhub get --name /bosh-lite/cf/router_ca | bosh interpolate - --path /value/certificate > $SSL_CERT_DIR/$ENV.router.ca 46 47 export SKIP_SSL_VALIDATION=false 48 49 domain="$(cat bosh-lite-env-info/name).lite.cli.fun" 50 export CF_INT_API="https://api.${domain}" 51 export CF_DIAL_TIMEOUT=15 52 53 export GOPATH=$PWD/go 54 export PATH=$GOPATH/bin:$PATH 55 56 pushd cf-cli-binaries 57 tar xvzf cf-cli-binaries.tgz 58 chmod +x cf7-cli_linux_x86-64 59 mkdir -p $GOPATH/bin 60 mv cf7-cli_linux_x86-64 $GOPATH/bin/cf 61 popd 62 63 cf api "$CF_INT_API" 64 cf auth "$CF_INT_CLIENT_ID" "$CF_INT_CLIENT_SECRET" --client-credentials 65 cf orgs 66 cf logout 67 68 set -x 69 70 cd $GOPATH/src/code.cloudfoundry.org/cli 71 72 go get -u github.com/onsi/ginkgo/ginkgo 73 74 export GOFLAGS="-tags=$TAGS" 75 ginkgo -r -nodes="$NODES" -flakeAttempts="$FLAKE_ATTEMPTS" -slowSpecThreshold=60 -randomizeAllSpecs integration/shared/isolated integration/v7/isolated integration/v7/plugin integration/shared/experimental integration/v7/experimental integration/v7/push 76 ginkgo -r -flakeAttempts="$FLAKE_ATTEMPTS" -slowSpecThreshold=60 -randomizeAllSpecs integration/shared/global integration/v7/global