Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Basic Windows setup #8208

Merged
merged 1 commit into from
Sep 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"