Files
runner-images/images/macos/scripts/tests/RubyGem.Tests.ps1
T

46 lines
1.1 KiB
PowerShell
Raw Normal View History

Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
2023-12-04 12:13:08 +01:00
2021-09-24 13:56:16 +03:00
$os = Get-OSVersion
Describe "RubyGems" {
2023-12-04 12:13:08 +01:00
$gemTestCases = (Get-ToolsetContent).ruby.rubygems | ForEach-Object {
@{gemName = $_}
}
2023-12-04 12:13:08 +01:00
if ($gemTestCases) {
It "Gem <gemName> is installed" -TestCases $gemTestCases {
"gem list -i '^$gemName$'" | Should -MatchCommandOutput "true"
}
}
}
Describe "Bundler" {
It "Bundler" {
"bundler --version" | Should -ReturnZeroExitCode
}
}
Describe "Nomad shenzhen CLI" -Skip:($os.IsMonterey -or $os.IsVentura -or $os.IsSonoma) {
It "Nomad shenzhen CLI" {
"ipa --version" | Should -ReturnZeroExitCode
}
}
Describe "Fastlane" {
It "Fastlane" {
"fastlane --version" | Should -ReturnZeroExitCode
}
}
Describe "xcpretty" -Skip:($os.IsVentura -or $os.IsSonoma) {
It "xcpretty" {
"xcpretty --version" | Should -ReturnZeroExitCode
}
2021-10-27 16:48:10 +03:00
}
Describe "jazzy" -Skip:($os.IsVentura -or $os.IsSonoma) {
2021-10-27 16:48:10 +03:00
It "jazzy" {
"jazzy --version" | Should -ReturnZeroExitCode
}
}