-
Notifications
You must be signed in to change notification settings - Fork 15
/
appveyor.yml
executable file
·94 lines (77 loc) · 3.27 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# configuration for "master" branch
# build in Debug mode and Test
# SEE: https://anotherlookontech.wordpress.com/2016/10/12/integrate-net-core-appveyor-opencover-and-codecov/
#$OPENCOVER = $ENV:USERPROFILE + '\.nuget\packages\OpenCover\4.6.519\tools\OpenCover.Console.exe'
#$target = '-target:C:\Program Files\dotnet\dotnet.exe'
-
branches:
only:
- master
image: Visual Studio 2017
environment:
release_version: '0.10.0'
version: $(release_version).{build}
configuration: Debug
build:
project: Liquid.NET.sln
publish_nuget: true
include_nuget_references: true
before_build:
- nuget restore
# hmm, see: https://github.com/rexm/Handlebars.Net/blob/master/appveyor.yml
# also: https://github.com/OpenCover/opencover/issues/601
test_script:
- set OpenCover=%USERPROFILE%\.nuget\packages\OpenCover\4.6.519\tools\OpenCover.Console.exe
- set OpenCoverTargetX=%UserProfile%\.nuget\packages\xunit.runner.console\2.3.0-beta3-build3705\tools\net452\xunit.console.x86.exe
- set OpenCoverTarget="dotnet.exe"
- set ReportGenerator=%UserProfile%\.nuget\packages\reportgenerator\2.5.10\tools\ReportGenerator.exe
#- set OpenCoverTargetArgs=test .\Liquid.NET.Tests\Liquid.NET.Tests.csproj --configuration Debug --framework netcoreapp1.1
- set OpenCoverTargetArgs=test .\Liquid.NET.Tests\Liquid.NET.Tests.csproj --configuration Debug --framework net452
#- '"%OpenCover%" -register:user -target:"%OpenCoverTarget%" -targetargs:"%OpenCoverTargetArgs%" -searchdirs:.\Liquid.NET.Tests\bin\Debug\net462 -excludebyattribute:*.ExcludeFromCodeCoverage* -filter:"+[Liquid.NET]* -[Liquid.NET]Liquid.NET.Tests.*" -returntargetcode -oldstyle -output:.\Liquid.NET.coverage.xml'
- '"%OpenCover%" -register:user -target:"%OpenCoverTarget%" -targetargs:"%OpenCoverTargetArgs%" -searchdirs:.\Liquid.NET.Tests\bin\Debug\netcoreapp1.1 -excludebyattribute:*.ExcludeFromCodeCoverage* -filter:"+[Liquid.NET]* -[Liquid.NET]Liquid.NET.Tests.*" -returntargetcode -oldstyle -output:.\Liquid.NET.coverage.xml'
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
- pip install codecov
- codecov -f "Liquid.NET.coverage.xml"
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}-dev'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
nuget:
project_feed: true
# configuration for "release" branch
# build in Debug mode and Test
-
branches:
only:
- release
image: Visual Studio 2017
environment:
release_version: '0.9.7'
version: $(release_version).{build}
configuration: Release
before_build:
- nuget restore
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '$(release_version)'
assembly_file_version: '$(release_version)'
assembly_informational_version: '$(release_version)'
nuget:
account_feed: true
project_feed: true
build:
project: Liquid.NET.sln
publish_nuget: true
include_nuget_references: true
verbosity: minimal
deploy:
- provider: NuGet
prerelease: false
api_key:
secure: VupoidE3HdOx3mLhAdrOX/liMBaU122WL+0etvpc1fmlw6/8lE6W3TcLwByCFzhx
artifact: /.*\.nupkg/
# on:
# appveyor_repo_tag: true