-
Notifications
You must be signed in to change notification settings - Fork 14
/
appveyor-release.yml
51 lines (49 loc) · 1.93 KB
/
appveyor-release.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
version: 1.0.0.{build}
pull_requests:
do_not_increment_build_number: true
branches:
only:
- master
skip_tags: true
os: Visual Studio 2015
configuration: Release
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
environment:
COVERALLS_REPO_TOKEN:
secure: ZDPFevPOISOj7KUZ0Duav8gg8iHuLuj5MEeVMpZedcnBdFkBukunzaJJZYGYNeFs
before_build:
- cmd: nuget restore
build:
project: Topshelf.SimpleInjector.sln
publish_nuget: true
include_nuget_references: true
parallel: true
verbosity: minimal
test:
assemblies: '**\*.Test.dll'
after_test:
- cmd: >-
mkdir reports
IF NOT DEFINED APPVEYOR_PULL_REQUEST_NUMBER packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -mergeoutput -register:user -excludebyattribute:*.ExcludeFromCodeCoverage*^ -target:"packages\NUnit.ConsoleRunner.3.6.1\tools\nunit3-console.exe" "-targetargs:\"Tests\Topshelf.FileSystemWatcher.Test\bin\%CONFIGURATION%\Topshelf.FileSystemWatcher.Test.dll\" \"Tests\Topshelf.SimpleInjector.Quartz.Test\bin\%CONFIGURATION%\Topshelf.SimpleInjector.Quartz.Test.dll\" \"Tests\Topshelf.SimpleInjector.Test\bin\%CONFIGURATION%\Topshelf.SimpleInjector.Test.dll\"" -filter:"+[*]Topshelf.SimpleInjector.* +[*]Topshelf.FileSystemWatcher.* -[*.Test]*" -output:"reports\OpenCoverCoverage.xml"
IF NOT DEFINED APPVEYOR_PULL_REQUEST_NUMBER packages\coveralls.net.0.7.0\tools\csmacnz.Coveralls.exe --opencover -i reports\OpenCoverCoverage.xml --repoToken %COVERALLS_REPO_TOKEN% --commitBranch %APPVEYOR_REPO_BRANCH%
artifacts:
- path: '*.nupkg'
deploy:
- provider: NuGet
api_key:
secure: +ug6kwo6xvx5Cve5Z6UGxc8E/MdJ9JliiCx+78gIuhvh1ot22VETceLEd8YXKYqg
skip_symbols: true
artifact: /.*\.nupkg/
notifications:
- provider: Email
to:
subject: Build Change AppVeyor
on_build_success: true
on_build_failure: true
on_build_status_changed: true