github.com/dcarley/cf-cli@v6.24.1-0.20170220111324-4225ff346898+incompatible/ci/cli/tasks/cats-linux.yml (about)

     1  ---
     2  platform: linux
     3  image: docker:///cloudfoundry/cli-ci
     4  
     5  inputs:
     6  - name: cf-release-repo
     7  - name: cf-cli-binaries
     8  - name: bosh-lite-lock
     9  - name: cats-config
    10  
    11  params:
    12    BACKEND:
    13    NODES: 2
    14  
    15  run:
    16    path: bash
    17    args:
    18    - -c
    19    - |
    20      set -eux
    21  
    22      export GOPATH="${PWD}/cf-release-repo"
    23      export PATH="${GOPATH}/bin":${PATH}
    24      export CONFIG=$PWD/cats-config/integration_config.json
    25  
    26      mkdir -p cf-release-repo/bin
    27      pushd cf-cli-binaries
    28        tar xvf cf-cli-binaries.tgz
    29        chmod +x cf-cli_linux_x86-64
    30        ln -s $PWD/cf-cli_linux_x86-64 $GOPATH/bin/cf
    31      popd
    32  
    33      cd "${GOPATH}/src/github.com/cloudfoundry/cf-acceptance-tests"
    34  
    35      go get -u github.com/FiloSottile/gvt
    36      gvt update github.com/onsi/ginkgo
    37  
    38      # Redact passwords in output
    39      sed -E 's/(.*(admin_password|existing_user_password).*\:)(.*)/\1 [REDACTED]/' $CONFIG
    40  
    41      SKIPS="-skip="
    42      [[ "$BACKEND" = "diego" ]] && SKIPS="${SKIPS}NO_DIEGO_SUPPORT|"
    43      [[ "$BACKEND" = "dea" ]] && SKIPS="${SKIPS}NO_DEA_SUPPORT|"
    44      [[ "$BACKEND" = "" ]] && SKIPS="${SKIPS}NO_DEA_SUPPORT|NO_DIEGO_SUPPORT|"
    45      SKIPS="${SKIPS}dotnet-core|"
    46      SKIPS="${SKIPS}transparently proxies both reserved|"
    47  
    48      # Remove trailing |
    49      SKIPS=$(echo $SKIPS | sed -E 's/(.*)(\|)/\1/')
    50  
    51      # remove when this CATS pull request merges: https://github.com/cloudfoundry/cf-acceptance-tests/pull/181
    52      sed -i 's/LoggregatorEndpoint string/DopplerEndPoint string/g' apps/loggregator.go
    53      sed -i 's/return strings.Replace(getCfHomeConfig().LoggregatorEndpoint, "loggregator", "doppler", -1)/return getCfHomeConfig().DopplerEndPoint/g' apps/loggregator.go
    54  
    55      ./bin/test \
    56        -flakeAttempts=2 -slowSpecThreshold=120 -randomizeAllSpecs \
    57        -nodes "${NODES}" \
    58        "${SKIPS}"