forked from serilog-contrib/serilog-sinks-graylog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
95 lines (77 loc) · 3.61 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
95
-
branches:
except:
- release
init:
- cmd: "set branch=%APPVEYOR_REPO_BRANCH%"
- cmd: "echo branch:%branch%"
- cmd: "set newVersion=1.0.%APPVEYOR_BUILD_NUMBER%-%branch%"
- cmd: "echo newVersion:%newVersion%"
- cmd: "set versonSuffix=%APPVEYOR_BUILD_NUMBER%-%branch%"
- cmd: "echo versonSuffix:%versonSuffix%"
- cmd: appveyor UpdateBuild -Version "%newVersion%"
skip_tags: true
before_build:
- nuget install OpenCover -ExcludeVersion -OutputDirectory "packages"
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "{version}"
assembly_file_version: "{version}"
assembly_informational_version: "{version}"
configuration: Debug
image: Visual Studio 2017
build_script:
- cmd: msbuild /t:restore /v:Minimal ./src/serilog-sinks-graylogvs2017.sln
- cmd: msbuild /t:build /p:Configuration=Debug /v:Minimal ./src/serilog-sinks-graylogvs2017.sln
- cmd: msbuild /t:pack /v:minimal /p:IncludeSymbols=true /p:PackageOutputPath=../../artifacts /p:PackageVersion=%newVersion% ./src/Serilog.Sinks.Graylog/Serilog.Sinks.Graylog.csproj
test:
categories:
except:
- Integration
after_test:
- cmd: "dir C:\\projects\\serilog-sinks-graylog\\src\\Serilog.Sinks.Graylog.Tests\\bin\\Debug\\net46"
- .\packages\OpenCover\tools\OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -targetargs:"C:\projects\serilog-sinks-graylog\src\Serilog.Sinks.Graylog.Tests\bin\Debug\net46\Serilog.Sinks.Graylog.Tests.dll -notrait \"category=Integration\" " -filter:"+[Serilog.Sinks.Graylog*]* -[*]*Test*" -output:.\coverage.xml
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
- pip install codecov
- ps: Get-Content coverage.xml | foreach {Write-Output $_}
- codecov -f "coverage.xml" -t cd3f1ab1-60c6-4848-824b-466b93321d96
artifacts:
- path: "./artifacts/*.*"
-
branches:
only:
- release
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "{version}"
assembly_file_version: "{version}"
assembly_informational_version: "{version}"
configuration: Release
image: Visual Studio 2017
before_build:
- appveyor-retry dotnet restore -v Minimal
build_script:
- cmd: msbuild /t:restore /v:Minimal ./src/serilog-sinks-graylogvs2017.sln
- cmd: msbuild /t:build /p:Configuration=Debug /v:Minimal ./src/serilog-sinks-graylogvs2017.sln
- cmd: msbuild /t:pack /v:minimal /p:IncludeSymbols=true /p:PackageOutputPath=../../artifacts ./src/Serilog.Sinks.Graylog/Serilog.Sinks.Graylog.csproj
test:
categories:
except:
- Integration
after_test:
- cmd: "dir C:\\projects\\serilog-sinks-graylog\\src\\Serilog.Sinks.Graylog.Tests\\bin\\Debug\\net46"
- .\packages\OpenCover\tools\OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -searchdirs:"C:\projects\serilog-sinks-graylog\src\Serilog.Sinks.Graylog.Tests\bin\Debug\net46" -targetdir:"C:\projects\serilog-sinks-graylog\src\Serilog.Sinks.Graylog.Tests\bin\Debug\net46" -targetargs:"Serilog.Sinks.Graylog.Tests.dll -notrait \"category=Integration\" " -filter:"+[Serilog.Sinks.Graylog*]* -[*]*Test*" -output:.\coverage.xml
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
- pip install codecov
- ps: Get-Content coverage.xml | foreach {$_.length}
- codecov -f "coverage.xml" -t cd3f1ab1-60c6-4848-824b-466b93321d96
artifacts:
- path: "./artifacts/*.nupkg"
deploy:
provider: NuGet
api_key:
secure: IHVAasaX8yvwCHeCI/mBgWBRzLNlOpRn3yJnZFyslzTnJpELyxKDaKM5y/LN0zsl
skip_symbols: false
artifact: /.*\.nupkg/