github.com/jenspinney/cli@v6.42.1-0.20190207184520-7450c600020e+incompatible/ci/cli/tasks/integration-windows.ps1 (about)

     1  $ErrorActionPreference = "Stop"
     2  $Env:GOPATH="$pwd\go"
     3  $Env:CF_DIAL_TIMEOUT=15
     4  
     5  $Env:PATH="C:\Go\bin;" + "$Env:PATH"
     6  $Env:PATH="$Env:GOPATH\bin;" + "$Env:PATH"
     7  $Env:PATH="C:\Program Files\GnuWin32\bin;" + "$Env:PATH"
     8  $Env:PATH="$pwd;" + "$Env:PATH"
     9  
    10  $DOMAIN=(Get-Content $pwd\bosh-lock\name -Raw).trim()
    11  $Env:CF_INT_PASSWORD=(Get-Content $pwd\cf-credentials\cf-password -Raw).trim()
    12  $Env:CF_INT_OIDC_PASSWORD=(Get-Content $pwd\cf-credentials\uaa-oidc-password -Raw).trim()
    13  $Env:CF_INT_OIDC_USERNAME="admin-oidc"
    14  $Env:CF_INT_API="https://api.$DOMAIN"
    15  $Env:SKIP_SSL_VALIDATION="false"
    16  
    17  $CF_INT_NAME = $DOMAIN.split(".")[0]
    18  Import-Certificate -Filepath "$pwd\cf-credentials\cert_dir\$CF_INT_NAME.lb.cert" -CertStoreLocation "cert:\LocalMachine\root"
    19  
    20  Import-Certificate -Filepath "$pwd\cf-credentials\cert_dir\$CF_INT_NAME.router.ca" -CertStoreLocation "cert:\LocalMachine\root"
    21  
    22  pushd $pwd\cf-cli-binaries
    23  	7z e cf-cli-binaries.tgz -y
    24  	7z x cf-cli-binaries.tar -y
    25  	Move-Item -Path $pwd\cf-cli_winx64.exe  -Destination ..\cf.exe -Force
    26  popd
    27  
    28  go get -v -u github.com/onsi/ginkgo/ginkgo
    29  
    30  $Env:RUN_ID=(openssl rand -hex 16)
    31  
    32  cd $Env:GOPATH\src\code.cloudfoundry.org\cli
    33  ginkgo.exe -r -nodes=16 -flakeAttempts=2 -slowSpecThreshold=60 -randomizeAllSpecs ./integration/shared/isolated ./integration/v6/isolated ./integration/shared/plugin ./integration/v6/push
    34  ginkgo.exe -r -flakeAttempts=2 -slowSpecThreshold=60 -randomizeAllSpecs ./integration/shared/global ./integration/v6/global