This document contains instructions for Google employees only. If you are not a Google employee, these instructions will fail because you don't have permission to access secret keys.
The kokoro tests depend on:
- chocolatey packages like
microsoft-build-tools
. - other, downloadable packages like casperjs and
phantomjs. - secret keys for accessing resources in Google Cloud. For example, for the
CloudSql tests to pass, there must be an environment variable set containing a connection string.
The scripts in this directory install those dependencies.
-
Google Cloud SDK. Sign into gcloud with your corp credentials.
PS > gcloud auth login
-
Run Powershell as an Administrator.
-
In Powershell, run
PS C:\...\dotnet-docs-samples> .kokoro-windows\New-BuildEnv.ps1
-
Close the Powershell Window.
-
Run Powershell, this time not as an Administrator.
-
Run these commands:
PS C:\...\dotnet-docs-samples> env\Activate.ps1 # Now the kokoro build environment is loaded. Run any test. PS C:\...\dotnet-docs-samples> .\buildAndRunTests.ps1