@@ -11,21 +11,14 @@ init:
11
11
- choco install -y erlang
12
12
- choco install -y rabbitmq
13
13
14
- install :
14
+ before_build :
15
15
- copy "Local.props.example" "Local.props"
16
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")
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)
29
22
30
23
build :
31
24
parallel : true
@@ -35,6 +28,15 @@ build:
35
28
include_nuget_references : false
36
29
verbosity : normal
37
30
31
+ before_test :
32
+ - ps : |
33
+ $regPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RabbitMQ"
34
+ if (Test-Path "HKLM:\SOFTWARE\Wow6432Node\") { $regPath = "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\RabbitMQ" }
35
+ $path = Split-Path -Parent (Get-ItemProperty $regPath "UninstallString").UninstallString
36
+ $version = (Get-ItemProperty $regPath "DisplayVersion").DisplayVersion
37
+ [Environment]::SetEnvironmentVariable("RABBITMQ_HOME", "$path\rabbitmq_server-$version", "User")
38
+ [Environment]::SetEnvironmentVariable("RABBITMQ_RABBITMQCTL_PATHen", "$path\rabbitmq_server-$version\sbin\rabietmqctl.bat", "User")
39
+
38
40
test_script :
39
41
- cd c:\projects\rabbitmq-dotnet-client
40
42
- tools\nunit\bin\nunit-console.exe /framework:net-4.5 -config=Debug projects/client/Unit/RabbitMQ.Client.Unit.csproj
0 commit comments