-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathci_execution.ps1
More file actions
19 lines (19 loc) · 818 Bytes
/
ci_execution.ps1
File metadata and controls
19 lines (19 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#Requires –Version 7.3
If ($PSVersionTable.PSVersion -lt [version]"7.4") {
Write-Host "Powershell version lower than 7.4. We need to enable experimental feature PSNativeCommandUseErrorActionPreference"
Enable-ExperimentalFeature PSNativeCommandErrorActionPreference
}
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 run //:hello_world