exclude R and virtualbox

This commit is contained in:
Aleksandr Chebotov
2020-09-22 12:12:44 +03:00
parent e691d6e33b
commit d0524e9381
3 changed files with 33 additions and 20 deletions

View File

@@ -40,12 +40,19 @@ for package in ${binst_common_utils[@]}; do
done done
# brew cask install # brew cask install
bcask_common_utils=( if is_BigSur; then
julia bcask_common_utils=(
virtualbox julia
vagrant vagrant
r )
) else
bcask_common_utils=(
julia
virtualbox
vagrant
r
)
fi
for package in ${bcask_common_utils[@]}; do for package in ${bcask_common_utils[@]}; do
echo "Install $package" echo "Install $package"

View File

@@ -55,6 +55,10 @@ if ( -not $os.IsHighSierra) {
$markdown += New-MDList -Style Unordered -NoNewLine -Lines $lines $markdown += New-MDList -Style Unordered -NoNewLine -Lines $lines
} }
if ($os.IsLessThanBigSur) {
$markdown += New-MDList -Style Unordered -Lines @(Get-RVersion) -NoNewLine
}
$markdown += New-MDList -Style Unordered -Lines @( $markdown += New-MDList -Style Unordered -Lines @(
"Node.js ${nodejsVersion}" "Node.js ${nodejsVersion}"
"NVM ${nvmVersion}" "NVM ${nvmVersion}"
@@ -63,7 +67,6 @@ $markdown += New-MDList -Style Unordered -Lines @(
$python3Version, $python3Version,
"Ruby ${rubyVersion}", "Ruby ${rubyVersion}",
(Get-DotnetVersionList), (Get-DotnetVersionList),
(Get-RVersion),
"Go ${goVersion}", "Go ${goVersion}",
"$phpVersion", "$phpVersion",
"$juliaVersion" "$juliaVersion"
@@ -139,7 +142,6 @@ $bazelVersion = Run-Command "bazel --version" | Take-Part -Part 0 -Delimiter "-"
$bazeliskVersion = Run-Command "bazelisk version" | Select-String "Bazelisk version:" | Take-Part -Part 1 -Delimiter ":" $bazeliskVersion = Run-Command "bazelisk version" | Select-String "Bazelisk version:" | Take-Part -Part 1 -Delimiter ":"
$packerVersion = Run-Command "packer --version" $packerVersion = Run-Command "packer --version"
$helmVersion = Run-Command "helm version --short" $helmVersion = Run-Command "helm version --short"
$vbox = Run-Command "vboxmanage -v"
$vagrant = Run-Command "vagrant -v" $vagrant = Run-Command "vagrant -v"
$mongo = Run-Command "mongo --version" | Select-String "MongoDB shell version" | Take-Part -Part 3 $mongo = Run-Command "mongo --version" | Select-String "MongoDB shell version" | Take-Part -Part 3
$mongod = Run-Command "mongod --version" | Select-String "db version " | Take-Part -Part 2 $mongod = Run-Command "mongod --version" | Select-String "db version " | Take-Part -Part 2
@@ -177,8 +179,12 @@ if ($os.IsHigherThanMojave) {
$markdown += New-MDList -Lines "Newman $newmanVersion" -Style Unordered -NoNewLine $markdown += New-MDList -Lines "Newman $newmanVersion" -Style Unordered -NoNewLine
} }
if ($os.IsLessThanBigSur) { if ($os.IsLessThanBigSur) {
$vbox = Run-Command "vboxmanage -v"
$parallelVersion = Run-Command "parallel --version" | Select-String "GNU parallel" | Select-Object -First 1 $parallelVersion = Run-Command "parallel --version" | Select-String "GNU parallel" | Select-Object -First 1
$markdown += New-MDList -Lines $parallelVersion -Style Unordered $markdown += New-MDList -Style Unordered -Lines @(
$vbox
$parallelVersion
)
} }
$markdown += New-MDNewLine $markdown += New-MDNewLine
@@ -190,9 +196,9 @@ $azureCLIVersion = Run-Command "az -v" | Select-String "^azure-cli" | Take-Part
$awsVersion = Run-Command "aws --version" | Take-Part -Part 0 | Take-Part -Delimiter "/" -Part 1 $awsVersion = Run-Command "aws --version" | Take-Part -Part 0 | Take-Part -Delimiter "/" -Part 1
$aliyunVersion = Run-Command "aliyun --version" | Select-String "Alibaba Cloud Command Line Interface Version " | Take-Part -Part 6 $aliyunVersion = Run-Command "aliyun --version" | Select-String "Alibaba Cloud Command Line Interface Version " | Take-Part -Part 6
$awsSamVersion = Run-Command "sam --version" | Take-Part -Part 3 $awsSamVersion = Run-Command "sam --version" | Take-Part -Part 3
$awsSessionManagerVersion = Run-Command "session-manager-plugin --version" $awsSessionManagerVersion = Run-Command "session-manager-plugin --version"
$ghcUpVersion = Run-Command "ghcup --version" | Take-Part -Part 5 $ghcUpVersion = Run-Command "ghcup --version" | Take-Part -Part 5
$ghcVersion = Run-Command "ghc --version" | Take-Part -Part 7 $ghcVersion = Run-Command "ghc --version" | Take-Part -Part 7
$cabalVersion = Run-Command "cabal --version" | Take-Part -Part 3 $cabalVersion = Run-Command "cabal --version" | Take-Part -Part 3
$stackVersion = Run-Command "stack --version" | Take-Part -Part 1 | ForEach-Object {$_.replace(",","")} $stackVersion = Run-Command "stack --version" | Take-Part -Part 1 | ForEach-Object {$_.replace(",","")}

View File

@@ -103,7 +103,7 @@ Describe "Common utilities" {
$result = Get-CommandResult "gem list" $result = Get-CommandResult "gem list"
$result.Output | Should -BeLike "*nomad-cli*" $result.Output | Should -BeLike "*nomad-cli*"
} }
It "Nomad CLI IPA" { It "Nomad CLI IPA" {
"ipa --version" | Should -ReturnZeroExitCode "ipa --version" | Should -ReturnZeroExitCode
} }
@@ -163,7 +163,7 @@ Describe "Common utilities" {
It "PostgreSQL-Client" { It "PostgreSQL-Client" {
"psql --version" | Should -ReturnZeroExitCode "psql --version" | Should -ReturnZeroExitCode
} }
It "PostgreSQL-Server" { It "PostgreSQL-Server" {
"pg_config --version" | Should -ReturnZeroExitCode "pg_config --version" | Should -ReturnZeroExitCode
} }
@@ -180,11 +180,11 @@ Describe "Common utilities" {
Get-WhichTool "php" | Should -Not -BeLike "/usr/bin/php*" Get-WhichTool "php" | Should -Not -BeLike "/usr/bin/php*"
"php --version" | Should -ReturnZeroExitCode "php --version" | Should -ReturnZeroExitCode
} }
It "Composer" { It "Composer" {
"composer --version" | Should -ReturnZeroExitCode "composer --version" | Should -ReturnZeroExitCode
} }
It "R" -Skip:($os.IsBigSur) { It "R" -Skip:($os.IsBigSur) {
"R --version" | Should -ReturnZeroExitCode "R --version" | Should -ReturnZeroExitCode
} }
@@ -200,7 +200,7 @@ Describe "Common utilities" {
It "bazelisk" { It "bazelisk" {
"bazelisk version" | Should -ReturnZeroExitCode "bazelisk version" | Should -ReturnZeroExitCode
} }
It "Julia" { It "Julia" {
"julia --version" | Should -ReturnZeroExitCode "julia --version" | Should -ReturnZeroExitCode
} }
@@ -213,7 +213,7 @@ Describe "Common utilities" {
"helm version --short" | Should -ReturnZeroExitCode "helm version --short" | Should -ReturnZeroExitCode
} }
It "virtualbox" { It "virtualbox" -Skip:($os.IsBigSur) {
"vboxmanage -v" | Should -ReturnZeroExitCode "vboxmanage -v" | Should -ReturnZeroExitCode
} }
@@ -254,7 +254,7 @@ Describe "Browsers" {
It "Microsoft Edge Driver" { It "Microsoft Edge Driver" {
"msedgedriver --version" | Should -ReturnZeroExitCode "msedgedriver --version" | Should -ReturnZeroExitCode
} }
It "Firefox" { It "Firefox" {
$firefoxLocation = "/Applications/Firefox.app/Contents/MacOS/firefox" $firefoxLocation = "/Applications/Firefox.app/Contents/MacOS/firefox"
$firefoxLocation | Should -Exist $firefoxLocation | Should -Exist
@@ -306,7 +306,7 @@ Describe "Haskell" -Skip:($os.IsHighSierra) {
It "GHC" { It "GHC" {
"ghc --version" | Should -ReturnZeroExitCode "ghc --version" | Should -ReturnZeroExitCode
} }
It "Cabal" { It "Cabal" {
"cabal --version" | Should -ReturnZeroExitCode "cabal --version" | Should -ReturnZeroExitCode
} }
@@ -329,7 +329,7 @@ Describe "Gcc" -Skip:($os.IsHighSierra) {
param ( param (
[string] $GccVersion [string] $GccVersion
) )
"gcc-$GccVersion --version" | Should -ReturnZeroExitCode "gcc-$GccVersion --version" | Should -ReturnZeroExitCode
} }
} }