[macOS] Add compilable brew packages for macOS12 (#10681)

This commit is contained in:
sarathrajsrinivasan
2024-09-25 14:45:18 -07:00
committed by GitHub
parent ae99c16b0c
commit ce5aa1950d
5 changed files with 40 additions and 12 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/bash -e -o pipefail
################################################################################
## File: install-compilable-brew-packages.sh
## Desc: Install compilable brew packages
################################################################################
source ~/utils/utils.sh
compilable_packages=$(get_toolset_value '.brew.compilable_packages[]')
for package in $compilable_packages; do
echo "Installing $package..."
brew_smart_install "$package"
done
invoke_tests "Common" "Compiled"

View File

@@ -87,7 +87,7 @@ Describe "7-Zip" {
}
}
Describe "Apache Ant" {
Describe "Apache Ant" -Skip:($os.IsMonterey) {
It "Apache Ant" {
"ant -version" | Should -ReturnZeroExitCode
}
@@ -159,7 +159,7 @@ Describe "Homebrew" {
}
}
Describe "Kotlin" {
Describe "Kotlin" -Skip:($os.IsMonterey) {
$kotlinPackages = @("kapt", "kotlin", "kotlinc", "kotlinc-jvm", "kotlin-dce-js")
It "<toolName> is available" -TestCases ($kotlinPackages | ForEach-Object { @{ toolName = $_ } }) {
@@ -167,12 +167,6 @@ Describe "Kotlin" {
}
}
Describe "sbt" -Skip:($os.IsVentura -or $os.IsSonoma -or $os.IsSequoia) {
It "sbt" {
"sbt -version" | Should -ReturnZeroExitCode
}
}
Describe "yq" {
It "yq" {
"yq --version" | Should -ReturnZeroExitCode

View File

@@ -146,3 +146,19 @@ Describe "Colima" -Skip:($os.IsVentura -or $os.IsSonoma -or $os.IsSequoia) {
"colima version" | Should -ReturnZeroExitCode
}
}
Describe "Compiled" -Skip:(-not $os.IsMonterey) {
It "Apache Ant" {
"ant -version" | Should -ReturnZeroExitCode
}
$kotlinPackages = @("kapt", "kotlin", "kotlinc", "kotlinc-jvm", "kotlin-dce-js")
It "<toolName> is available" -TestCases ($kotlinPackages | ForEach-Object { @{ toolName = $_ } }) {
"$toolName -version" | Should -ReturnZeroExitCode
}
It "sbt" {
"sbt -version" | Should -ReturnZeroExitCode
}
}

View File

@@ -266,7 +266,8 @@ build {
"${path.root}/../scripts/build/install-pypy.sh",
"${path.root}/../scripts/build/install-pipx-packages.sh",
"${path.root}/../scripts/build/install-bicep.sh",
"${path.root}/../scripts/build/install-codeql-bundle.sh"
"${path.root}/../scripts/build/install-codeql-bundle.sh",
"${path.root}/../scripts/build/install-compilable-brew-packages.sh"
]
}

View File

@@ -184,7 +184,6 @@
},
"brew": {
"common_packages": [
"ant",
"aria2",
"azure-cli",
"bazelisk",
@@ -194,13 +193,11 @@
"gh",
"gnupg",
"gnu-tar",
"kotlin",
"libpq",
"p7zip",
"packer",
"perl",
"pkg-config",
"sbt",
"subversion",
"swiftformat",
"swig",
@@ -222,6 +219,11 @@
"vagrant",
"virtualbox",
"parallels"
],
"compilable_packages": [
"ant",
"kotlin",
"sbt"
]
},
"gcc": {