github.com/arunkumar7540/cli@v6.45.0+incompatible/ci/cli-pr-builder/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 path: go/src/code.cloudfoundry.org/cli 12 - name: bosh-lite 13 14 outputs: 15 - name: failure_summary 16 path: outputs/failures 17 18 params: 19 CF_CLI_EXPERIMENTAL: false 20 NODES: 8 21 22 run: 23 path: bash 24 args: 25 - -c 26 - | 27 28 set -e 29 30 31 source bosh-lite/env 32 credhub login --skip-tls-validation 33 export CF_INT_PASSWORD=$(credhub get --name '/bosh-lite/cf/cf_admin_password' | bosh interpolate --path /value -) 34 35 36 export CF_INT_OIDC_USERNAME="admin-oidc" 37 export CF_INT_OIDC_PASSWORD=$(credhub get -n /bosh-lite/cf/uaa_oidc_admin_password | bosh interpolate --path /value -) 38 39 export PR_BUILDER_OUTPUT_DIR="$PWD/outputs/failures" 40 41 if [ ! -d $PR_BUILDER_OUTPUT_DIR ]; then 42 mkdir -p $PR_BUILDER_OUTPUT_DIR 43 fi 44 45 set -x 46 export CF_INT_API="https://api.${domain}" 47 export CF_DIAL_TIMEOUT=15 48 49 export CF_INT_API="https://api.${BOSH_LITE_DOMAIN}" 50 51 export GOPATH=$PWD/go 52 export PATH=$GOPATH/bin:$PATH 53 54 cd $GOPATH/src/code.cloudfoundry.org/cli 55 make build 56 export PATH=$PWD/out:$PATH 57 58 go get -u github.com/onsi/ginkgo/ginkgo 59 60 set +e 61 ginkgo -r -nodes=$NODES -flakeAttempts=2 -slowSpecThreshold=60 -randomizeAllSpecs -keepGoing integration/shared/isolated integration/v6/isolated integration/shared/plugin integration/v6/push 62 parallel_failed=$? 63 64 ginkgo -r -flakeAttempts=2 -slowSpecThreshold=60 -randomizeAllSpecs -keepGoing integration/shared/global integration/v6/global 65 serial_failed=$? 66 set -e 67 68 SUMMARY_FILE="$PR_BUILDER_OUTPUT_DIR/summary.txt" 69 70 cat <<'EOF' > $SUMMARY_FILE 71 ### CI Run Summary: 72 The following failures were detected in the pipeline: 73 ``` 74 EOF 75 76 cat $PR_BUILDER_OUTPUT_DIR/summary_* | sort >> $SUMMARY_FILE 77 78 echo '```' >> $SUMMARY_FILE 79 80 if [[ $parallel_failed -ne 0 || $serial_failed -ne 0 ]]; then 81 exit 1 82 fi