winsw/appveyor.yml

54 lines
1.7 KiB
YAML
Raw Normal View History

# Do not build tags and feature branches
skip_tags: true
skip_branch_with_pr: true
# Project configuration
2018-12-07 16:00:00 +00:00
image: Visual Studio 2019
platform: Any CPU
configuration: Release
2018-12-07 16:00:00 +00:00
version: 2.0.{build}
# Automatically register private account and/or project AppVeyor NuGet feeds.
nuget:
account_feed: true
project_feed: true
disable_publish_on_pr: true # disable publishing of .nupkg artifacts to
before_build:
# Check SDKs
- ECHO "Installed SDKs:"
2018-12-07 16:00:00 +00:00
- ps: "ls \"C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\\""
# Generates a temporary SNK. Not for real signing
2018-12-07 16:00:00 +00:00
- cmd: "\"C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.8 Tools\\sn.exe\" -k winsw_key.snk"
2018-12-07 16:00:00 +00:00
dotnet_csproj:
patch: true
2018-12-07 16:00:00 +00:00
file: "**\\*.csproj"
version: $(appveyor_build_version)
build_script:
- dotnet.exe build src\winsw.sln
after_build:
- ps: nuget pack WinSW.nuspec -Version $env:APPVEYOR_BUILD_VERSION
test_script:
# Runner for NUnit2
2018-12-05 16:00:00 +00:00
- ps: nunit-console 'src\Test\winswTests\bin\Release\net40\winswTests.dll' 'src\Test\winswTests\bin\Release\net40\SharedDirectoryMapper.dll' 'src\Test\winswTests\bin\Release\net40\RunawayProcessKiller.dll'
artifacts:
2018-12-05 16:00:00 +00:00
- path: 'src\Core\ServiceWrapper\bin\Release\net20\WinSW.exe'
name: WinSW.NET2.exe
2018-12-05 16:00:00 +00:00
- path: 'src\Core\ServiceWrapper\bin\Release\net40\WinSW.exe'
name: WinSW.NET4.exe
2018-12-05 16:00:00 +00:00
- path: 'src\Core\ServiceWrapper\bin\Release\net45\WinSW.exe'
name: WinSW.NET45.exe
- path: 'src\Core\ServiceWrapper\bin\Release\netcoreapp3.1\'
name: WinSW.NETCore
- path: 'WinSW.$(appveyor_build_version).nupkg'
name: WinSW.nupkg
2018-12-05 16:00:00 +00:00
- path: 'examples\sample-allOptions.xml'
name: 'sample-allOptions.xml'
2018-12-05 16:00:00 +00:00
- path: 'examples\sample-minimal.xml'
name: 'sample-minimal.xml'