github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+incompatible/ci/cli/tasks/integration-experimental-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_INT_CLIENT_ID:
    19    CF_INT_CLIENT_SECRET:
    20    CF_INT_DOCKER_IMAGE:
    21    CF_INT_DOCKER_USERNAME:
    22    CF_INT_DOCKER_PASSWORD:
    23  
    24  run:
    25    path: bash
    26    args:
    27    - -c
    28    - |
    29      set -e
    30  
    31      ENV=$(cat bosh-lite-lock/name | cut -d "." -f 1)
    32      export CF_PASSWORD=$(bosh int vars-store/ci/infrastructure/$ENV/deployment-vars.yml --path /cf_admin_password)
    33  
    34      set -x
    35  
    36      domain=$(cat bosh-lite-lock/name)
    37      export CF_API="https://api.${domain}"
    38      export CF_DIAL_TIMEOUT=15
    39  
    40      export GOPATH=$PWD/go
    41      export PATH=$GOPATH/bin:$PATH
    42  
    43      go get -u github.com/onsi/ginkgo/ginkgo
    44  
    45      pushd cf-cli-binaries
    46        tar xvzf cf-cli-binaries.tgz
    47        chmod +x cf-cli_linux_x86-64
    48        mv cf-cli_linux_x86-64 $GOPATH/bin/cf
    49      popd
    50  
    51      cd $GOPATH/src/code.cloudfoundry.org/cli
    52      ginkgo -r -nodes=16 -flakeAttempts=2 -slowSpecThreshold=60 -randomizeAllSpecs integration/experimental