github.com/jghiloni/cli@v6.28.1-0.20170628223758-0ce05fe032a2+incompatible/ci/cli/tasks/integration-linux.yml (about)

     1  ---
     2  platform: linux
     3  
     4  image_resource:
     5    type: docker-image
     6    source:
     7      repository: cloudfoundry/cli-ci
     8  
     9  inputs:
    10  - name: cli-integration
    11    path: go/src/code.cloudfoundry.org/cli
    12  - name: cf-cli-binaries
    13  - name: bosh-lite-lock
    14  - name: vars-store
    15  
    16  params:
    17    CF_CLI_EXPERIMENTAL: false
    18  
    19  run:
    20    path: bash
    21    args:
    22    - -c
    23    - |
    24      set -e
    25  
    26      ENV=$(cat bosh-lite-lock/name | cut -d "." -f 1)
    27      export CF_PASSWORD=$(bosh2 int vars-store/ci/infrastructure/$ENV/deployment-vars.yml --path /cf_admin_password)
    28  
    29      set -x
    30  
    31      domain=$(cat bosh-lite-lock/name)
    32      export CF_API="https://api.${domain}"
    33      export CF_DIAL_TIMEOUT=15
    34  
    35      export GOPATH=$PWD/go
    36      export PATH=$GOPATH/bin:$PATH
    37  
    38      go get -u github.com/onsi/ginkgo/ginkgo
    39  
    40      pushd cf-cli-binaries
    41        tar xvzf cf-cli-binaries.tgz
    42        chmod +x cf-cli_linux_x86-64
    43        mv cf-cli_linux_x86-64 $GOPATH/bin/cf
    44      popd
    45  
    46      cd $GOPATH/src/code.cloudfoundry.org/cli
    47      ginkgo -r -nodes=16 -flakeAttempts=2 -slowSpecThreshold=60 -randomizeAllSpecs integration/isolated integration/plugin
    48      ginkgo -r -flakeAttempts=2 -slowSpecThreshold=60 -randomizeAllSpecs integration/global