File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,10 @@ environment:
12
12
secure : C8FL0UTKVN8YcMW1wdssabbkSWMIrpJTqgUNeI2NfQw=
13
13
14
14
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
16
16
# tools\appveyor\install.ps1
17
17
- " %HOMEDRIVE%%HOMEPATH%\r abbitmq-server-3.8.2.exe"
18
+ - " %HOMEDRIVE%%HOMEPATH%\o tp_win64_22.2.exe"
18
19
19
20
install :
20
21
- IF DEFINED SNKSECRET (nuget install secure-file -ExcludeVersion)
Original file line number Diff line number Diff line change @@ -4,6 +4,27 @@ Set-StrictMode -Version 2.0
4
4
5
5
[Net.ServicePointManager ]::SecurityProtocol = [Net.ServicePointManager ]::SecurityProtocol -bor ' Tls12'
6
6
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
+
7
28
$rabbitmq_installer_download_url = ' https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.2/rabbitmq-server-3.8.2.exe'
8
29
$rabbitmq_installer_path = Join-Path - Path $HOME - ChildPath ' rabbitmq-server-3.8.2.exe'
9
30
You can’t perform that action at this time.
0 commit comments