Skip to content

Instantly share code, notes, and snippets.

@ngbrown
Last active August 29, 2015 14:16
Show Gist options
  • Save ngbrown/d64a07f907be99637aca to your computer and use it in GitHub Desktop.
Save ngbrown/d64a07f907be99637aca to your computer and use it in GitHub Desktop.
AppVeyor for rabbitmq-dotnet-client
version: 3.4.5.{build}
configuration: Release
platform: Any CPU
environment:
RABBITMQ_RABBITMQCTL_PATH: C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.4.1\sbin\rabbitmqctl.bat
install:
- ps: >-
choco install rabbitmq -Version 3.4.1.0
Set-Item -Path Env:\ERLANG_HOME -Value ([Environment]::GetEnvironmentVariables("Machine")["ERLANG_HOME"])
cache: C:\Users\appveyor\AppData\Local\Temp\chocolatey\
before_build:
- ps: >-
copy "Local.props.example" "Local.props"
$localpropsitem = Get-ChildItem ".\Local.props"
$xml = New-Object -TypeName XML
$xml.Load($localpropsitem)
$xml.Project.PropertyGroup.PropAssemblyVersion = ${env:APPVEYOR_BUILD_VERSION}
$xml.Save($localpropsitem)
build:
verbosity: minimal
test_script:
- ps: Get-ChildItem -Recurse | ? { $_.FullName -imatch '\\bin\\unit-tests.dll$' } | % { nunit-console /framework:net-4.0 /exclude=RequireSMP $_.FullName }
on_success:
- ps: >-
$semver = ${env:APPVEYOR_BUILD_VERSION} -ireplace '(\d+.\d+.\d+).(\d+)', "`$1-ci`$2-${env:APPVEYOR_REPO_BRANCH}"
$semver = $semver.Substring(0, [System.Math]::Min(20, $semver.Length))
nuget pack RabbitMQ.Client.nuspec -version $semver -symbols
nuget pack RabbitMQ.ServiceModel.nuspec -version $semver -symbols
Get-ChildItem .\*.nupkg | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment