|
| 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 |
0 commit comments