github.com/jghiloni/cli@v6.28.1-0.20170628223758-0ce05fe032a2+incompatible/ci/cli/tasks/cats-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: cf-acceptance-tests
    11    path: gopath/src/github.com/cloudfoundry/cf-acceptance-tests
    12  - name: cf-cli-binaries
    13  - name: bosh-lite-lock
    14  - name: cats-config
    15  
    16  params:
    17    BACKEND:
    18    NODES: 2
    19  
    20  run:
    21    path: bash
    22    args:
    23    - -c
    24    - |
    25      set -eu
    26  
    27      export GOPATH="${PWD}/gopath"
    28      export PATH="${GOPATH}/bin":${PATH}
    29      export CF_DIAL_TIMEOUT=15
    30      export CONFIG=$PWD/cats-config/integration_config.json
    31  
    32      mkdir -p $GOPATH/bin
    33      pushd cf-cli-binaries
    34        tar xvf cf-cli-binaries.tgz
    35        chmod +x cf-cli_linux_x86-64
    36        ln -s $PWD/cf-cli_linux_x86-64 $GOPATH/bin/cf
    37      popd
    38  
    39      cd "${GOPATH}/src/github.com/cloudfoundry/cf-acceptance-tests"
    40  
    41      # Redact passwords in output
    42      sed -E 's/(.*(admin_password|existing_user_password).*\:)(.*)/\1 [REDACTED]/' $CONFIG
    43  
    44      SKIPS="-skip="
    45      SKIPS="${SKIPS}transparently proxies both reserved|"
    46  
    47      # Remove trailing |
    48      SKIPS=$(echo $SKIPS | sed -E 's/(.*)(\|)/\1/')
    49  
    50      ./bin/test \
    51        -flakeAttempts=2 -slowSpecThreshold=120 -randomizeAllSpecs \
    52        -nodes "${NODES}" \
    53        "${SKIPS}"