github.com/willmadison/cli@v6.40.1-0.20181018160101-29d5937903ff+incompatible/ci/cli-v7/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-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    CF_INT_IGNORE_API_VERSION_CHECK:
    25    NODES: 16
    26  
    27  run:
    28    path: bash
    29    args:
    30    - -c
    31    - |
    32      set -e
    33  
    34      ENV=$(cat bosh-lock/name | cut -d "." -f 1)
    35  
    36      if [[ $ENV == "homeroom" ]]; then
    37        export CF_INT_PASSWORD=$(bosh int vars-store/ci/infrastructure/$ENV/deployment-vars.yml --path /cf_admin_password)
    38        export CF_INT_OIDC_USERNAME="admin"
    39        export CF_INT_OIDC_PASSWORD=$CF_INT_PASSWORD
    40      else
    41        pushd vars-store/ci/infrastructure/$ENV
    42          eval "$(bbl print-env)"
    43        popd
    44  
    45        credhub login
    46        export CF_INT_PASSWORD=$(credhub get -n /bosh-$ENV/cf/cf_admin_password | bosh interpolate --path /value -)
    47  
    48        export CF_INT_OIDC_USERNAME="admin-oidc"
    49        export CF_INT_OIDC_PASSWORD=$(credhub get -n /bosh-$ENV/cf/uaa_oidc_admin_password | bosh interpolate --path /value -)
    50      fi
    51  
    52      set -x
    53  
    54      domain=$(cat bosh-lock/name)
    55      export CF_INT_API="https://api.${domain}"
    56      export CF_DIAL_TIMEOUT=15
    57  
    58      export GOPATH=$PWD/go
    59      export PATH=$GOPATH/bin:$PATH
    60  
    61      pushd cf-cli-binaries
    62        tar xvzf cf-cli-binaries.tgz
    63        chmod +x cf7-cli_linux_x86-64
    64        mkdir -p $GOPATH/bin
    65        mv cf7-cli_linux_x86-64 $GOPATH/bin/cf
    66      popd
    67  
    68      cd $GOPATH/src/code.cloudfoundry.org/cli
    69  
    70      go get -u github.com/onsi/ginkgo/ginkgo
    71  
    72      ginkgo -r -nodes=$NODES -flakeAttempts=2 -slowSpecThreshold=60 -randomizeAllSpecs integration/shared/isolated integration/v7/isolated integration/shared/plugin integration/shared/experimental integration/v7/experimental
    73      ginkgo -r -flakeAttempts=2 -slowSpecThreshold=60 -randomizeAllSpecs integration/shared/global integration/v7/global