Skip to content

Commit de61683

Browse files
committed
Use Erlang 22.2
(cherry picked from commit fca0136)
1 parent 7b7a027 commit de61683

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

appveyor.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ environment:
1212
secure: C8FL0UTKVN8YcMW1wdssabbkSWMIrpJTqgUNeI2NfQw=
1313

1414
cache:
15-
# Note: this must match the $rabbitmq_installer_path value in
15+
# Note: this must match the $rabbitmq_installer_path and $erlang_installer_path values in
1616
# tools\appveyor\install.ps1
1717
- "%HOMEDRIVE%%HOMEPATH%\rabbitmq-server-3.8.2.exe"
18+
- "%HOMEDRIVE%%HOMEPATH%\otp_win64_22.2.exe"
1819

1920
install:
2021
- IF DEFINED SNKSECRET (nuget install secure-file -ExcludeVersion)

tools/appveyor/install.ps1

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,27 @@ Set-StrictMode -Version 2.0
44

55
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor 'Tls12'
66

7+
Write-Host '[INFO] Removing all existing versions of Erlang...'
8+
Get-ChildItem -Path 'C:\Program Files\erl*\Uninstall.exe' | %{ Start-Process -Wait -NoNewWindow -FilePath $_ -ArgumentList '/S' }
9+
10+
$erlang_download_url = 'http://erlang.org/download/otp_win64_22.2.exe'
11+
$erlang_installer_path = Join-Path -Path $HOME -ChildPath 'otp_win64_22.2.exe'
12+
$erlang_install_dir = Join-Path -Path $HOME -ChildPath 'erlang'
13+
14+
Write-Host '[INFO] Downloading Erlang...'
15+
16+
if (-Not (Test-Path $erlang_installer_path))
17+
{
18+
Invoke-WebRequest -UseBasicParsing -Uri $erlang_download_url -OutFile $erlang_installer_path
19+
}
20+
else
21+
{
22+
Write-Host "[INFO] Found" $erlang_installer_path "in cache."
23+
}
24+
25+
Write-Host "[INFO] Installing Erlang to $erlang_install_dir..."
26+
& $erlang_installer_path '/S' "/D=$erlang_install_dir" | Out-Null
27+
728
$rabbitmq_installer_download_url = 'https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.2/rabbitmq-server-3.8.2.exe'
829
$rabbitmq_installer_path = Join-Path -Path $HOME -ChildPath 'rabbitmq-server-3.8.2.exe'
930

0 commit comments

Comments
 (0)