2016-12-09 00:14:55 +00:00
|
|
|
# Do not build tags and feature branches
|
2016-12-04 08:34:19 +00:00
|
|
|
skip_tags: true
|
2016-12-09 00:14:55 +00:00
|
|
|
skip_branch_with_pr: true
|
2016-12-04 08:34:19 +00:00
|
|
|
|
|
|
|
# Project configuration
|
2018-12-07 16:00:00 +00:00
|
|
|
image: Visual Studio 2019
|
2018-12-05 16:00:00 +00:00
|
|
|
# platform: Any CPU
|
2016-12-04 08:34:19 +00:00
|
|
|
configuration: Release
|
2018-12-07 16:00:00 +00:00
|
|
|
version: 2.0.{build}
|
2016-12-04 08:34:19 +00:00
|
|
|
|
|
|
|
# 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-05 16:00:00 +00:00
|
|
|
- ps: 'ls "C:\Program Files (x86)\Microsoft SDKs\Windows\"'
|
2016-12-04 08:34:19 +00:00
|
|
|
# Generates a temporary SNK. Not for real signing
|
2018-12-05 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'
|
2016-12-04 08:34:19 +00:00
|
|
|
|
2018-12-07 16:00:00 +00:00
|
|
|
dotnet_csproj:
|
2016-12-06 22:54:37 +00:00
|
|
|
patch: true
|
2018-12-05 16:00:00 +00:00
|
|
|
file: '**\*.csproj'
|
2018-12-07 16:00:00 +00:00
|
|
|
version: $(appveyor_build_version)
|
|
|
|
|
2018-12-07 16:00:00 +00:00
|
|
|
build_script:
|
2018-12-04 16:00:00 +00:00
|
|
|
- dotnet.exe build src\winsw.sln
|
2018-12-04 16:00:00 +00:00
|
|
|
- dotnet.exe publish -f netcoreapp3.1 src\Core\ServiceWrapper\winsw.csproj
|
2018-12-04 16:00:00 +00:00
|
|
|
- dotnet.exe publish -f netcoreapp3.1 -r win-x64 src\Core\ServiceWrapper\winsw.csproj /p:PublishSingleFile=true /p:PublishTrimmed=true
|
|
|
|
- dotnet.exe publish -f netcoreapp3.1 -r win-x86 src\Core\ServiceWrapper\winsw.csproj /p:PublishSingleFile=true /p:PublishTrimmed=true
|
2016-12-04 08:34:19 +00:00
|
|
|
|
2016-12-11 19:11:16 +00:00
|
|
|
after_build:
|
|
|
|
- ps: nuget pack WinSW.nuspec -Version $env:APPVEYOR_BUILD_VERSION
|
|
|
|
|
2016-12-04 08:34:19 +00:00
|
|
|
test_script:
|
2018-12-05 16:00:00 +00:00
|
|
|
- dotnet.exe test -f net40 --no-build src\Test\winswTests\winswTests.csproj
|
|
|
|
- dotnet.exe test -f net45 --no-build src\Test\winswTests\winswTests.csproj
|
|
|
|
- dotnet.exe test -f netcoreapp3.1 --no-build src\Test\winswTests\winswTests.csproj
|
2016-12-04 08:34:19 +00:00
|
|
|
|
|
|
|
artifacts:
|
2018-12-05 16:00:00 +00:00
|
|
|
- path: 'src\Core\ServiceWrapper\bin\Release\net20\WinSW.exe'
|
2016-12-06 22:21:21 +00:00
|
|
|
name: WinSW.NET2.exe
|
2018-12-05 16:00:00 +00:00
|
|
|
- path: 'src\Core\ServiceWrapper\bin\Release\net40\WinSW.exe'
|
2016-12-06 22:21:21 +00:00
|
|
|
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
|
2018-12-04 16:00:00 +00:00
|
|
|
- path: 'src\Core\ServiceWrapper\bin\Release\netcoreapp3.1\publish\'
|
2018-12-05 16:00:00 +00:00
|
|
|
name: WinSW.NETCore31
|
2018-12-04 16:00:00 +00:00
|
|
|
- path: 'src\Core\ServiceWrapper\bin\Release\netcoreapp3.1\win-x64\publish\WindowsService.exe'
|
|
|
|
name: WinSW.NETCore31.x64
|
|
|
|
- path: 'src\Core\ServiceWrapper\bin\Release\netcoreapp3.1\win-x86\publish\WindowsService.exe'
|
|
|
|
name: WinSW.NETCore31.x86
|
2016-12-11 19:11:16 +00:00
|
|
|
- path: 'WinSW.$(appveyor_build_version).nupkg'
|
|
|
|
name: WinSW.nupkg
|
2018-12-05 16:00:00 +00:00
|
|
|
- path: 'examples\sample-allOptions.xml'
|
2016-12-23 21:47:05 +00:00
|
|
|
name: 'sample-allOptions.xml'
|
2018-12-05 16:00:00 +00:00
|
|
|
- path: 'examples\sample-minimal.xml'
|
2016-12-23 21:47:05 +00:00
|
|
|
name: 'sample-minimal.xml'
|