forked from rabbitmq/rabbitmq-dotnet-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
65 lines (53 loc) · 2.2 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: "4.1.0.{build}"
platform: Any CPU
configuration: Release
skip_tags: true
environment:
BUILDWINRT: true
USINGMONO: false
SNKSECRET:
secure: C8FL0UTKVN8YcMW1wdssabbkSWMIrpJTqgUNeI2NfQw=
init:
- appveyor DownloadFile https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview2/scripts/obtain/dotnet-install.ps1
- ps: |
& .\dotnet-install.ps1 -Channel "preview" -Version "1.0.0-preview2-003121"
Remove-Item .\dotnet-install.ps1
- echo %APPVEYOR_BUILD_VERSION%
- choco install -y rabbitmq
install:
- IF DEFINED SNKSECRET (nuget install secure-file -ExcludeVersion)
- 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)
- IF NOT DEFINED SNKSECRET (copy "rabbit.snk.prbuilds" "rabbit.snk") ELSE (ECHO Using The Release Key File)
- ps: |
$regPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RabbitMQ"
if (Test-Path "HKLM:\SOFTWARE\Wow6432Node\") { $regPath = "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\RabbitMQ" }
$path = Split-Path -Parent (Get-ItemProperty $regPath "UninstallString").UninstallString
$version = (Get-ItemProperty $regPath "DisplayVersion").DisplayVersion
[Environment]::SetEnvironmentVariable("RABBITMQ_HOME", "$path\rabbitmq_server-$version", "Machine")
$env:RABBITMQ_HOME = "$path\rabbitmq_server-$version"
[Environment]::SetEnvironmentVariable("RABBITMQ_RABBITMQCTL_PATH", "$path\rabbitmq_server-$version\sbin\rabbitmqctl.bat", "Machine")
$env:RABBITMQ_RABBITMQCTL_PATH = "$path\rabbitmq_server-$version\sbin\rabbitmqctl.bat"
before_build:
build_script:
- cmd: .\build.bat
- cmd: .\run-test.bat
- ps: |
$suffix = Get-Date -format "yyyyMMddhhss"
Write-Host $suffix
dotnet pack "projects\client\RabbitMQ.Client" -c Release --version-suffix=ci-$suffix
test: off
after_build:
artifacts:
- path: '*.nupkg'
- path: 'projects\client\RabbitMQ.Client\bin\Release\*.nupkg'
- path: '*.log'
name: Logs
deploy: off
nuget:
account_feed: true
project_feed: true
disable_publish_on_pr: true
branches:
only:
- master
- stable