File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ # version format
2
+ version : " {build}"
3
+
4
+ # Operating system (build VM template)
5
+ os : Windows Server 2012 R2
6
+ platform : Any CPU
7
+ configuration : Release
8
+ skip_tags : true
9
+
10
+ init :
11
+ - choco install -y erlang
12
+ - choco install -y rabbitmq
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
+
30
+ build :
31
+ parallel : true
32
+ project : RabbitMQDotNetClient.sln
33
+ publish_nuget : false
34
+ publish_nuget_symbols : false
35
+ include_nuget_references : false
36
+ verbosity : normal
37
+
38
+ test_script :
39
+ - cd c:\projects\rabbitmq-dotnet-client
40
+ - tools\nunit\bin\nunit-console.exe /framework:net-4.5 -config=Debug projects/client/Unit/RabbitMQ.Client.Unit.csproj
41
+
42
+ test : off
43
+ deploy : off
You can’t perform that action at this time.
0 commit comments