[Ubuntu] Install Bazel and Bazelisk on Ubuntu 24.04 (#9810)

This commit is contained in:
Erik Bershel
2024-05-09 13:16:22 +02:00
committed by GitHub
parent 24a830de3c
commit 35be26d2a9
3 changed files with 4 additions and 5 deletions

View File

@@ -102,10 +102,8 @@ $tools = $installedSoftware.AddHeader("Tools")
$tools.AddToolVersion("Ansible", $(Get-AnsibleVersion))
$tools.AddToolVersion("apt-fast", $(Get-AptFastVersion))
$tools.AddToolVersion("AzCopy", $(Get-AzCopyVersion))
if ((Test-IsUbuntu20) -or (Test-IsUbuntu22)) {
$tools.AddToolVersion("Bazel", $(Get-BazelVersion))
$tools.AddToolVersion("Bazelisk", $(Get-BazeliskVersion))
}
$tools.AddToolVersion("Bicep", $(Get-BicepVersion))
if ((Test-IsUbuntu20) -or (Test-IsUbuntu22)) {
$tools.AddToolVersion("Buildah", $(Get-BuildahVersion))

View File

@@ -118,7 +118,7 @@ Describe "Ansible" {
}
}
Describe "Bazel" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
Describe "Bazel" {
It "<ToolName>" -TestCases @(
@{ ToolName = "bazel" }
@{ ToolName = "bazelisk" }

View File

@@ -300,6 +300,7 @@ provisioner "shell" {
"${path.root}/../scripts/build/install-mysql.sh",
"${path.root}/../scripts/build/install-nginx.sh",
"${path.root}/../scripts/build/install-nodejs.sh",
"${path.root}/../scripts/build/install-bazel.sh",
"${path.root}/../scripts/build/install-php.sh",
"${path.root}/../scripts/build/install-postgresql.sh",
"${path.root}/../scripts/build/install-pulumi.sh",