Skip to content

Commit b948ac4

Browse files
committed
Add AppVeyor Build Definition
1 parent f569efa commit b948ac4

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

appveyor.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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

0 commit comments

Comments
 (0)