-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathci_execution.ps1
More file actions
21 lines (21 loc) · 792 Bytes
/
ci_execution.ps1
File metadata and controls
21 lines (21 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Set-StrictMode -Version latest
$ErrorActionPreference = "Stop"
$PSNativeCommandUseErrorActionPreference = $true
Set-Location $PSScriptRoot
bazel version
if($IsWindows) {
Write-Host "Skipping 'bazel run //:buildifier' on Windows"
Write-Host "Running buildifier from the Bazel rule does not work on Windows"
Write-Host "See https://github.com/keith/buildifier-prebuilt/issues/99 and https://github.com/bazelbuild/bazel-central-registry/issues/380"
} else {
bazel run //:buildifier
}
bazel build //...
bazel test //:foo_test
if($IsWindows) {
Write-Host "Skipping 'bazel coverage //:foo_test' on Windows"
Write-Host "Bazel coverage is not supported on Windows"
Write-Host "See https://github.com/bazelbuild/bazel/issues/6374"
} else {
bazel coverage //:foo_test
}