forked from NLog/NLog.Web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
59 lines (55 loc) · 2.21 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
version: 4.8.5.{build}
clone_folder: c:\projects\nlogweb
configuration: Release
image: Visual Studio 2017
platform: Any CPU
assembly_info:
patch: true
file: '**\AssemblyInfo.cs'
assembly_version: '4.0.0'
assembly_file_version: '{version}' #NLog.Web
assembly_informational_version: '{version}' #NLog.Web
nuget:
project_feed: true
matrix:
fast_finish: true
build:
publish_nuget: true
publish_nuget_symbols: true
verbosity: quiet
skip_tags: true
build_script:
- ps: |
$versionPrefix = "4.8.5"
$versionSuffix = ""
$versionBuild = $versionPrefix + "." + ${env:APPVEYOR_BUILD_NUMBER}
$versionNuget = $versionPrefix
if ($env:APPVEYOR_PULL_REQUEST_NUMBER)
{
$versionPrefix = $versionBuild
$versionSuffix = "PR" + $env:APPVEYOR_PULL_REQUEST_NUMBER
}
if ($versionSuffix)
{
$versionNuget = $versionPrefix + "-" + $versionSuffix
}
$build_aspnet = "build_aspnet.bat", "-version_prefix=$versionPrefix", "-version_build=$versionBuild", "-version_suffix=$versionSuffix"
& cmd /c $build_aspnet
if ($LastExitCode -ne 0) {
throw "Exec: $ErrorMessage"
}
deploy:
- provider: NuGet
api_key:
secure: DtVDH1ZfIR8E2oDLeSPxfn0WFXw3MCv4WhLkkQQl9LfEHswb5sdxdCYodNKhrKik
on:
branch: master
test_script:
- nuget.exe install OpenCover -ExcludeVersion -DependencyVersion Ignore
- OpenCover\tools\OpenCover.Console.exe -register:user -returntargetcode -target:"%xunit20%\xunit.console.x86.exe" -targetargs:"\"c:\projects\nlogweb\tests\NLog.Web.Tests\bin\Release\net452\NLog.Web.Tests.dll\" -appveyor -noshadow" -returntargetcode -filter:"+[NLog.Web]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -hideskipped:All -oldstyle -output:coverage.xml
- OpenCover\tools\OpenCover.Console.exe -register:user -returntargetcode -target:"%xunit20%\xunit.console.x86.exe" -targetargs:"\"c:\projects\nlogweb\tests\NLog.Web.AspNetCore.Tests\bin\Release\net461\NLog.Web.AspNetCore.Tests.dll\" -appveyor -noshadow" -filter:"+[NLog.Web]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -hideskipped:All -oldstyle -mergeoutput -output:coverage.xml
- pip install codecov
- codecov -f "coverage.xml"
artifacts:
- path: '**\NLog.Web.*.nupkg'
- path: '**\NLog.Web.*.snupkg'