forked from serilog-contrib/serilog-sinks-graylog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
76 lines (63 loc) · 2.56 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
-
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
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "{version}"
assembly_file_version: "{version}"
assembly_informational_version: "{version}"
configuration: Release
before_build:
- appveyor-retry dotnet restore -v Minimal
- nuget install OpenCover -ExcludeVersion -OutputDirectory "packages"
build_script:
- cmd: dotnet build "./src/Serilog.Sinks.Graylog" -c %CONFIGURATION% --no-dependencies --version-suffix %APPVEYOR_BUILD_NUMBER%
after_build:
- cmd: dotnet pack "./src/Serilog.Sinks.Graylog" -c %CONFIGURATION% --no-build --version-suffix %APPVEYOR_BUILD_NUMBER% -o artifacts
test_script:
- cmd: dotnet test "./src/Serilog.Sinks.Graylog.Tests" -c %CONFIGURATION% -notrait "Category=Integration"
after_test:
- .\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\Release\net452\win7-x64\Serilog.Sinks.Graylog.Tests.dll -noshadow -appveyor" -filter:"+[Serilog.Sinks.Graylog*]* -[*]*Test*" -hideskipped:All -output:.\coverage.xml
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
- pip install codecov
- codecov -f "coverage.xml"
artifacts:
- path: "./artifacts/*.nupkg"
-
branches:
only:
- release
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "{version}"
assembly_file_version: "{version}"
assembly_informational_version: "{version}"
configuration: Release
before_build:
- appveyor-retry dotnet restore -v Minimal
build_script:
- cmd: dotnet build "./src/Serilog.Sinks.Graylog" -c %CONFIGURATION% --no-dependencies
after_build:
- cmd: dotnet pack "./src/Serilog.Sinks.Graylog" -c %CONFIGURATION% --no-build -o artifacts
test_script:
- cmd: dotnet test "./src/Serilog.Sinks.Graylog.Tests" -c %CONFIGURATION% -notrait "Category=Integration"
artifacts:
- path: "./artifacts/*.nupkg"
deploy:
provider: NuGet
api_key:
secure: IHVAasaX8yvwCHeCI/mBgWBRzLNlOpRn3yJnZFyslzTnJpELyxKDaKM5y/LN0zsl
skip_symbols: false
artifact: /.*\.nupkg/