forked from alphacloud/Autofac.Extras.Quartz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
92 lines (69 loc) · 2.58 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
pull_requests:
do_not_increment_build_number: true
nuget:
disable_publish_on_pr: true
os: Visual Studio 2017
environment:
# Set the DOTNET_SKIP_FIRST_TIME_EXPERIENCE environment variable to stop wasting time caching packages
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# Disable sending usage data to Microsoft
DOTNET_CLI_TELEMETRY_OPTOUT: true
codecov_token:
secure: g2QQUWGm6CtMd9M+AjcjOs7mkCoyGTW962Z5WepMi9Jd4BqqsI2vp3VkYGZgahUX
install:
- ps: >-
choco install GitVersion.Portable GitReleaseManager.Portable -y -pre -no-progress
choco install opencover -y --no-progress
before_build:
- ps: >-
cd src
dotnet restore
C:\ProgramData\chocolatey\bin\gfv.exe /version
C:\ProgramData\chocolatey\bin\gfv.exe /l console /output buildserver /updateAssemblyInfo
build_script:
- cmd: >-
cd /projects/autofac-extras-quartz
msbuild build.proj /t:BuildAll /p:PackageVersion="%GitVersion_NuGetVersion%" /p:BuildConfig=Debug
msbuild build.proj /t:BuildAll;Pack /p:PackageVersion="%GitVersion_NuGetVersion%" /p:BuildConfig=Release
test_script:
- cmd: >-
cd src/Tests/bin/Debug/net462
OpenCover.Console.exe -register:user -target:"nunit3-console.exe" -targetargs:"Autofac.Extras.Quartz.Tests.dll --result=test-results.xml --dispose-runners --nocolor" -output:".\coverage.xml" -filter:"+[Autofac.Extras.Quartz*]* -[Autofac.Extras.Quartz.Tests*]*"
cd /projects/autofac-extras-quartz/src/Tests/bin/Release/net462
nunit3-console Autofac.Extras.Quartz.Tests.dll --result=test-results.xml;format=AppVeyor --dispose-runners --nocolor
after_test:
- cmd: >-
SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%
pip install codecov
codecov -f "/projects/autofac-extras-quartz/src/Tests/bin/Debug/net462/coverage.xml" -t %codecov_token%
artifacts:
- path: out/packages/*.nupkg
deploy:
- provider: NuGet
name: Release builds
appveyor_repo_tag: true
api_key:
secure: HmgvMFl5yUvms5wcIZDCiBIZYyNWoTdouBwxuWJbYU7d0WVPTm6hnrIxhI4Xhcpl
skip_symbols: true
artifact: /.*\.nupkg/
- provider: NuGet
name: CI builds
on:
branch:
- /release/.*/
- develop
appveyor_repo_tag: true
api_key:
secure: HmgvMFl5yUvms5wcIZDCiBIZYyNWoTdouBwxuWJbYU7d0WVPTm6hnrIxhI4Xhcpl
skip_symbols: true
artifact: /.*\.nupkg/
- provider: GitHub
release: $(GitVersion_SemVer)
description: 'TODO: Release description'
artifact: /.*\.nupkg/
draft: true
prerelease: false
auth_token:
secure: Qrn7La5ZrojeX8v9/9+PXInkVyQw/8SJo100d0B4Y4vHRWGcpHfeY0o8zb9XM+p+
on:
appveyor_repo_tag: true