-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
47 lines (39 loc) · 1.62 KB
/
appveyor.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
image: Visual Studio 2017
configuration: Release
init:
- cmd: "set ProductBaseVersion=0.2.0"
- cmd: "echo ProductBaseVersion=%ProductBaseVersion%"
- cmd: "set ProductVersion=%ProductBaseVersion%.%APPVEYOR_BUILD_NUMBER%"
- cmd: "echo ProductVersion=%ProductVersion%"
- cmd: "set ProductLongVersion=%ProductVersion%-%APPVEYOR_REPO_BRANCH%"
- cmd: "echo ProductLongVersion=%ProductLongVersion%"
- cmd: appveyor UpdateBuild -Version "%ProductVersion%"
assembly_info:
patch: true
file: '**\FlexPath*\Properties\AssemblyInfo.cs'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '$(ProductLongVersion)'
before_build:
- nuget restore
- choco install opencover.portable
- choco install codecov
test_script:
- OpenCover.Console.exe -register:user -target:"nunit3-console.exe" -targetargs:".\FlexPath.Tests\bin\Debug\FlexPath.Tests.dll .\FlexPath.Tests\bin\Release\FlexPath.Tests.dll --result=myresults.xml;format=AppVeyor" -filter:"+[FlexPath*]* -[FlexPath.Tests*]*" -output:".\FlexPath_coverage.xml"
after_test:
- codecov -f "FlexPath_coverage.xml"
build:
publish_nuget: true
artifacts:
- path: 'FlexPath\bin\Release'
name: FlexPath
deploy:
tag: $(APPVEYOR_REPO_TAG_NAME) # update the tag triggering this release deployment
release: 'FlexPath $(ProductVersion)'
description: 'Release for version $(ProductLongVersion)'
draft: true
provider: GitHub
auth_token: $(GITHUB_RELEASE_TOKEN_ENCRYPTED) # your encrypted token from GitHub
artifact: /.*\.nupkg/ # upload all NuGet packages to release assets
on:
APPVEYOR_REPO_TAG: true # deploy on tag push only