File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 11
11
- choco install -y erlang
12
12
- choco install -y rabbitmq
13
13
14
+ install :
15
+ - copy "Local.props.example" "Local.props"
16
+ - ps : |
17
+ $localpropsitem = Get-ChildItem ".\Local.props"
18
+ $xml = New-Object -TypeName XML
19
+ $xml.Load($localpropsitem)
20
+ $xml.Project.PropertyGroup.PropAssemblyVersion = ${env:APPVEYOR_BUILD_VERSION}
21
+ $xml.Save($localpropsitem)
22
+ - ps : |
23
+ $regPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RabbitMQ"
24
+ if (Test-Path "HKLM:\SOFTWARE\Wow6432Node\") { $regPath = "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\RabbitMQ" }
25
+ $path = Split-Path -Parent (Get-ItemProperty $regPath "UninstallString").UninstallString
26
+ $version = (Get-ItemProperty $regPath "DisplayVersion").DisplayVersion
27
+ [Environment]::SetEnvironmentVariable("RABBITMQ_HOME", "$path\rabbitmq_server-$version", "User")
28
+ [Environment]::SetEnvironmentVariable("RABBITMQ_RABBITMQCTL_PATHen", "$path\rabbitmq_server-$version\sbin\rabietmqctl.bat", "User")
29
+
14
30
build :
15
31
parallel : true
16
32
project : RabbitMQDotNetClient.sln
You can’t perform that action at this time.
0 commit comments