Skip to content

Commit 5ab1cb3

Browse files
[macOS] Remove macOS 10.13 related code in the VE repo (#4494)
1 parent bebaaa6 commit 5ab1cb3

19 files changed

+54
-979
lines changed

images.CI/macos/azure-pipelines/macos1013.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

images.CI/macos/move-vm.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,8 @@ try {
8282
}
8383

8484
try {
85-
if ($VMName -notmatch "10.13") {
86-
Write-Host "Change CPU count to $CpuCount, cores count to $CoresPerSocketCount, amount of RAM to $Memory"
87-
$vm | Set-VM -NumCPU $CpuCount -CoresPerSocket $CoresPerSocketCount -MemoryMB $Memory -Confirm:$false -ErrorAction Stop | Out-Null
88-
}
85+
Write-Host "Change CPU count to $CpuCount, cores count to $CoresPerSocketCount, amount of RAM to $Memory"
86+
$vm | Set-VM -NumCPU $CpuCount -CoresPerSocket $CoresPerSocketCount -MemoryMB $Memory -Confirm:$false -ErrorAction Stop | Out-Null
8987
} catch {
9088
Write-Host "##vso[task.LogIssue type=error;]Failed to change specs for VM '$VMName'"
9189
}

images/macos/helpers/Common.Helpers.psm1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ function Get-OSVersion {
3434
return [PSCustomObject]@{
3535
Version = $osVersion.Version
3636
Platform = $osVersion.Platform
37-
IsHighSierra = $osVersionMajorMinor -eq "10.13"
3837
IsMojave = $osVersionMajorMinor -eq "10.14"
3938
IsCatalina = $osVersionMajorMinor -eq "10.15"
4039
IsBigSur = $osVersionMajorMinor -eq "11.0"

images/macos/macos-10.13-Readme.md

Lines changed: 0 additions & 340 deletions
This file was deleted.

images/macos/provision/core/firefox.sh

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,9 @@ source ~/utils/utils.sh
44
echo "Installing Firefox..."
55
brew install --cask firefox
66

7-
# High Sierra builds driver from sources, and it takes about 2 hours. It's much faster to download the binary directly
8-
if ! is_HighSierra; then
9-
echo "Installing Geckodriver..."
10-
brew_smart_install "geckodriver"
11-
geckoPath="$(brew --prefix geckodriver)/bin"
12-
else
13-
geckoUrl="$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest | jq -r '.assets[].browser_download_url | select(endswith("macos.tar.gz"))')"
14-
download_with_retries $geckoUrl "/tmp" "geckodriver.tar.gz"
15-
geckoPath="/usr/local/bin"
16-
tar -xzf /tmp/geckodriver.tar.gz -C $geckoPath
17-
fi
7+
echo "Installing Geckodriver..."
8+
brew_smart_install "geckodriver"
9+
geckoPath="$(brew --prefix geckodriver)/bin"
1810

1911
echo "Add GECKOWEBDRIVER to bashrc..."
2012
echo "export GECKOWEBDRIVER=${geckoPath}" >> "${HOME}/.bashrc"

images/macos/provision/core/ruby.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ GEM_PATH=`gem env|awk '/EXECUTABLE DIRECTORY/ {print $4}'`
99
echo "GEM_PATH=$GEM_PATH" >> "$HOME/.bashrc"
1010
echo 'export PATH="$GEM_PATH:/usr/local/opt/ruby@'${DEFAULT_RUBY_VERSION}'/bin:$PATH"' >> "$HOME/.bashrc"
1111

12-
#if High Sierra - skip installation from toolset
13-
if is_HighSierra; then
14-
exit 0
15-
fi
16-
1712
echo "Install Ruby from toolset..."
1813
PACKAGE_TAR_NAMES=$(curl -s "https://api.github.com/repos/ruby/ruby-builder/releases/latest" | jq -r '.assets[].name')
1914
TOOLSET_VERSIONS=$(get_toolset_value '.toolcache[] | select(.name | contains("Ruby")) | .versions[]')

images/macos/provision/core/toolcache-high-sierra.sh

Lines changed: 0 additions & 25 deletions
This file was deleted.

images/macos/provision/utils/utils.sh

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -71,32 +71,24 @@ is_Mojave() {
7171
fi
7272
}
7373

74-
is_HighSierra() {
75-
if [ "$OSTYPE" = "darwin17" ]; then
76-
true
77-
else
78-
false
79-
fi
80-
}
81-
8274
is_Less_Catalina() {
83-
if is_HighSierra || is_Mojave; then
75+
if is_Mojave; then
8476
true
8577
else
8678
false
8779
fi
8880
}
8981

9082
is_Less_BigSur() {
91-
if is_HighSierra || is_Mojave || is_Catalina; then
83+
if is_Mojave || is_Catalina; then
9284
true
9385
else
9486
false
9587
fi
9688
}
9789

9890
is_Less_Monterey() {
99-
if is_HighSierra || is_Mojave || is_Catalina || is_BigSur; then
91+
if is_Mojave || is_Catalina || is_BigSur; then
10092
true
10193
else
10294
false
@@ -132,9 +124,7 @@ brew_cask_install_ignoring_sha256() {
132124
}
133125

134126
get_brew_os_keyword() {
135-
if is_HighSierra; then
136-
echo "high_sierra"
137-
elif is_Mojave; then
127+
if is_Mojave; then
138128
echo "mojave"
139129
elif is_Catalina; then
140130
echo "catalina"

images/macos/software-report/SoftwareReport.Generator.ps1

Lines changed: 30 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if ($os.IsLessThanMonterey) {
5252
)
5353
}
5454

55-
if ( -not $os.IsHighSierra -and $os.IsLessThanMonterey) {
55+
if ($os.IsLessThanMonterey) {
5656
$languageAndRuntimeList += @(
5757
(Get-GccVersion)
5858
(Get-FortranVersion)
@@ -163,7 +163,7 @@ if ($os.IsLessThanBigSur) {
163163
)
164164
}
165165

166-
if (-not $os.IsHighSierra -and $os.IsLessThanMonterey) {
166+
if ($os.IsLessThanMonterey) {
167167
$utilitiesList += @(
168168
(Get-SwitchAudioOsxVersion),
169169
(Get-SoxVersion)
@@ -195,37 +195,28 @@ if ($os.IsLessThanMonterey) {
195195
$toolsList += @(
196196
(Get-XcodeCommandLineToolsVersion),
197197
(Get-SwigVersion),
198-
(Get-BicepVersion)
198+
(Get-BicepVersion),
199+
(Get-GHCupVersion),
200+
(Get-GHCVersion),
201+
(Get-CabalVersion),
202+
(Get-StackVersion)
199203
)
200204

201-
if( -not $os.IsHighSierra) {
205+
if($os.IsLessThanMonterey) {
202206
$toolsList += @(
203-
(Get-GHCupVersion),
204-
(Get-GHCVersion),
205-
(Get-CabalVersion),
206-
(Get-StackVersion)
207+
(Get-SwiftFormatVersion)
207208
)
208-
if($os.IsLessThanMonterey) {
209-
$toolsList += @(
210-
(Get-SwiftFormatVersion)
211-
)
212-
}
213209
}
214210

215211
$markdown += New-MDList -Style Unordered -Lines ($toolsList | Sort-Object)
216212

217213
# Linters
218214
$markdown += New-MDHeader "Linters" -Level 3
219215
$lintersList = @(
220-
(Get-YamllintVersion)
216+
(Get-YamllintVersion),
217+
(Get-SwiftLintVersion)
221218
)
222219

223-
if ( -not $os.IsHighSierra) {
224-
$lintersList += @(
225-
(Get-SwiftLintVersion)
226-
)
227-
}
228-
229220
$markdown += New-MDList -Style Unordered -Lines ($lintersList | Sort-Object)
230221

231222
$markdown += New-MDHeader "Browsers" -Level 3
@@ -241,27 +232,25 @@ $markdown += New-MDNewLine
241232
# Toolcache
242233
$markdown += Build-ToolcacheSection
243234

244-
if ( -not $os.IsHighSierra) {
245-
$markdown += New-MDHeader "Rust Tools" -Level 3
246-
$markdown += New-MDList -Style Unordered -Lines (@(
247-
(Get-RustVersion),
248-
(Get-RustupVersion),
249-
(Get-RustdocVersion),
250-
(Get-RustCargoVersion)
251-
) | Sort-Object
252-
)
253-
254-
$markdown += New-MDHeader "Packages" -Level 4
255-
$markdown += New-MDList -Style Unordered -Lines (@(
256-
(Get-Bindgen),
257-
(Get-Cbindgen),
258-
(Get-Cargooutdated),
259-
(Get-Cargoaudit),
260-
(Get-RustfmtVersion),
261-
(Get-RustClippyVersion)
262-
) | Sort-Object
263-
)
264-
}
235+
$markdown += New-MDHeader "Rust Tools" -Level 3
236+
$markdown += New-MDList -Style Unordered -Lines (@(
237+
(Get-RustVersion),
238+
(Get-RustupVersion),
239+
(Get-RustdocVersion),
240+
(Get-RustCargoVersion)
241+
) | Sort-Object
242+
)
243+
244+
$markdown += New-MDHeader "Packages" -Level 4
245+
$markdown += New-MDList -Style Unordered -Lines (@(
246+
(Get-Bindgen),
247+
(Get-Cbindgen),
248+
(Get-Cargooutdated),
249+
(Get-Cargoaudit),
250+
(Get-RustfmtVersion),
251+
(Get-RustClippyVersion)
252+
) | Sort-Object
253+
)
265254

266255
$markdown += New-MDHeader "PowerShell Tools" -Level 3
267256
$markdown += New-MDList -Lines (Get-PowershellVersion) -Style Unordered

images/macos/software-report/SoftwareReport.Toolcache.psm1

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,10 @@ function Build-ToolcacheSection {
5353
$output += New-MDList -Lines (Get-ToolcachePythonVersions) -Style Unordered
5454
$output += New-MDHeader "PyPy" -Level 4
5555
$output += New-MDList -Lines (Get-ToolcachePyPyVersions) -Style Unordered
56-
57-
if( -not $os.IsHighSierra) {
58-
$output += New-MDHeader "Node.js" -Level 4
59-
$output += New-MDList -Lines (Get-ToolcacheNodeVersions) -Style Unordered
60-
$output += New-MDHeader "Go" -Level 4
61-
$output += Get-ToolcacheGoTable
62-
}
56+
$output += New-MDHeader "Node.js" -Level 4
57+
$output += New-MDList -Lines (Get-ToolcacheNodeVersions) -Style Unordered
58+
$output += New-MDHeader "Go" -Level 4
59+
$output += Get-ToolcacheGoTable
6360

6461
return $output
6562
}

0 commit comments

Comments
 (0)