Skip to content

Commit

Permalink
ci: Basic Windows setup (envoyproxy#8208)
Browse files Browse the repository at this point in the history
Signed-off-by: Lizan Zhou <[email protected]>
  • Loading branch information
lizan authored and danzh1989 committed Sep 24, 2019
1 parent fe307f3 commit 974a1a6
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .azure-pipelines/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Azure Pipelines
# TODO(lizan): Consider rolling all presubmit jobs into one file.
trigger:
- master

jobs:
- job: Windows
timeoutInMinutes: 360
pool:
vmImage: 'windows-latest'

steps:
- powershell: |
.\ci\windows_ci_setup.ps1
Write-Host "##vso[task.prependpath]$env:TOOLS_BIN_DIR"
displayName: 'Install dependencies'
env:
TOOLS_BIN_DIR: $(Pipeline.Workspace)\bin
- powershell: .\ci\windows_ci_steps.ps1
displayName: 'Run Windows CI'
8 changes: 8 additions & 0 deletions ci/windows_ci_setup.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file only installs dependencies needed in additio to Azure pipelines hosted image.
# The list of installed software can be found at:
# https://github.com/Microsoft/azure-pipelines-image-generation/blob/master/images/win/Vs2019-Server2019-Readme.md

mkdir "$env:TOOLS_BIN_DIR"

$wc = New-Object System.Net.WebClient
$wc.DownloadFile("https://github.com/bazelbuild/bazelisk/releases/download/v1.0/bazelisk-windows-amd64.exe", "$env:TOOLS_BIN_DIR\bazel.exe")
1 change: 1 addition & 0 deletions ci/windows_ci_steps.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bazel --bazelrc=windows\.bazelrc test @envoy_api//test/build/...
2 changes: 2 additions & 0 deletions windows/tools/bazel.rc → windows/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ build --define hot_restart=disabled
build --define tcmalloc=disabled
# Build GRPC without c-ares support -- otherwise it will not link
build --define grpc_no_ares=true
build --features=compiler_param_file
build --workspace_status_command="bash bazel/get_workspace_status"

0 comments on commit 974a1a6

Please sign in to comment.