Skip to content

Commit d2a8eaa

Browse files
committed
Merge pull request #124 from rabbitmq/jf-add-appveyor-build
Publish NuGet Packages
2 parents f569efa + 760dea8 commit d2a8eaa

File tree

6 files changed

+73
-1
lines changed

6 files changed

+73
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,4 @@ projects/client/Unit*/TestResult.xml
9999
# Vim
100100
.sw?
101101
.*.sw?
102+
rabbit.snk

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## RabbitMQ .NET Client
1+
## RabbitMQ .NET Client [![Build status](https://ci.appveyor.com/api/projects/status/33srpo7owl1h3y4e?svg=true)](https://ci.appveyor.com/project/rabbitmq/rabbitmq-dotnet-client)
22

33
This repository contains source code of the [RabbitMQ .NET client](http://www.rabbitmq.com/dotnet.html).
44
The client is maintained by the [RabbitMQ team at Pivotal](http://github.com/rabbitmq/).

appveyor.props.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<PropTargetFramework>v4.0</PropTargetFramework>
5+
<PropUsingMono>$(USINGMONO)</PropUsingMono>
6+
<PropLaunchExe Condition="'$(PropUsingMono)' == 'true'">mono </PropLaunchExe>
7+
<PropBuildWinRT>$(BUILDWINRT)</PropBuildWinRT>
8+
<PropBuildWcf Condition="'$(PropUsingMono)' != 'true'">true</PropBuildWcf>
9+
<PropAssemblyVersion>$(APPVEYOR_BUILD_VERSION)</PropAssemblyVersion>
10+
<PropKeyfile>c:\projects\rabbitmq-dotnet-client\rabbit.snk</PropKeyfile>
11+
</PropertyGroup>
12+
</Project>

appveyor.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
version: "3.5.5.{build}"
2+
3+
platform: Any CPU
4+
configuration: Release
5+
skip_tags: true
6+
7+
environment:
8+
BUILDWINRT: true
9+
USINGMONO: false
10+
SNKSECRET:
11+
secure: C8FL0UTKVN8YcMW1wdssabbkSWMIrpJTqgUNeI2NfQw=
12+
13+
init:
14+
- echo %APPVEYOR_BUILD_VERSION%
15+
- choco install -y rabbitmq
16+
17+
install:
18+
- IF DEFINED SNKSECRET (nuget install secure-file -ExcludeVersion)
19+
- IF DEFINED SNKSECRET (secure-file\tools\secure-file -decrypt %APPVEYOR_BUILD_FOLDER%\rabbit.snk.enc -secret %SNKSECRET%) ELSE (ECHO This Is A Pull Request Build)
20+
- IF NOT DEFINED SNKSECRET (copy "rabbit.snk.prbuilds" "rabbit.snk") ELSE (ECHO Using The Release Key File)
21+
- ps: |
22+
$regPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RabbitMQ"
23+
if (Test-Path "HKLM:\SOFTWARE\Wow6432Node\") { $regPath = "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\RabbitMQ" }
24+
$path = Split-Path -Parent (Get-ItemProperty $regPath "UninstallString").UninstallString
25+
$version = (Get-ItemProperty $regPath "DisplayVersion").DisplayVersion
26+
[Environment]::SetEnvironmentVariable("RABBITMQ_HOME", "$path\rabbitmq_server-$version", "Machine")
27+
$env:RABBITMQ_HOME = "$path\rabbitmq_server-$version"
28+
[Environment]::SetEnvironmentVariable("RABBITMQ_RABBITMQCTL_PATH", "$path\rabbitmq_server-$version\sbin\rabbitmqctl.bat", "Machine")
29+
$env:RABBITMQ_RABBITMQCTL_PATH = "$path\rabbitmq_server-$version\sbin\rabbitmqctl.bat"
30+
31+
before_build:
32+
- copy "appveyor.props.in" "Local.props"
33+
34+
build:
35+
parallel: false
36+
project: RabbitMQDotNetClient.sln
37+
publish_nuget: false
38+
publish_nuget_symbols: false
39+
include_nuget_references: false
40+
verbosity: minimal
41+
42+
after_build:
43+
- ps: |
44+
$semver = ${env:APPVEYOR_BUILD_VERSION} -ireplace '(\d+.\d+.\d+).(\d+)', "`$1-ci`$2-${env:APPVEYOR_REPO_BRANCH}"
45+
$semver = $semver.Substring(0, [System.Math]::Min(20, $semver.Length))
46+
nuget pack RabbitMQ.Client.nuspec -version $semver -symbols
47+
nuget pack RabbitMQ.ServiceModel.nuspec -version $semver -symbols
48+
49+
test:
50+
assemblies:
51+
- '**\build\bin\unit-tests.dll'
52+
categories:
53+
except:
54+
- RequireSMP
55+
56+
artifacts:
57+
- path: '**\*.nupkg'
58+
59+
deploy: off

rabbit.snk.enc

608 Bytes
Binary file not shown.

rabbit.snk.prbuilds

596 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)