github.com/ablease/cli@v6.37.1-0.20180613014814-3adbb7d7fb19+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    CF_INT_IGNORE_API_VERSION_CHECK:
    25  
    26  run:
    27    path: bash
    28    args:
    29    - -c
    30    - |
    31      set -e
    32  
    33      ENV=$(cat bosh-lite-lock/name | cut -d "." -f 1)
    34      export CF_INT_PASSWORD=$(bosh int vars-store/ci/infrastructure/$ENV/deployment-vars.yml --path /cf_admin_password)
    35  
    36      set -x
    37  
    38      domain=$(cat bosh-lite-lock/name)
    39      export CF_INT_API="https://api.${domain}"
    40      export CF_DIAL_TIMEOUT=15
    41  
    42      export GOPATH=$PWD/go
    43      export PATH=$GOPATH/bin:$PATH
    44  
    45      pushd cf-cli-binaries
    46        tar xvzf cf-cli-binaries.tgz
    47        chmod +x cf-cli_linux_x86-64
    48        mkdir -p $GOPATH/bin
    49        mv cf-cli_linux_x86-64 $GOPATH/bin/cf
    50      popd
    51  
    52      cd $GOPATH/src/code.cloudfoundry.org/cli
    53  
    54      go get -u github.com/onsi/ginkgo/ginkgo
    55  
    56      ginkgo -r -nodes=16 -flakeAttempts=2 -slowSpecThreshold=60 -randomizeAllSpecs integration/isolated integration/plugin integration/push
    57      ginkgo -r -flakeAttempts=2 -slowSpecThreshold=60 -randomizeAllSpecs integration/global