-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
82 lines (75 loc) · 2.73 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
-
branches:
only:
- master
configuration: Release
platform: Any CPU
version: 1.1.{build}
pull_requests:
do_not_increment_build_number: true
assembly_info:
patch: true
file: '**\VersionInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
before_build:
- nuget restore
build:
project: SaferString.sln
verbosity: normal
environment:
COVERALLS_REPO_TOKEN:
secure: IwyKX1L6Kk0Ly/4Z3YJfz2IJmoO5WgkxJBeYXZ7y8gbMflizzv+RNINoV8P8g5pU
CODECOV_TOKEN:
secure: HXAWrWN8odMnS2FmQ/Iyy3hs7AD/PlRMSbSqFM//rgLTCOATsezlmVo07jzfs+YR
artifacts:
- path: '**/SaferString.*.nupkg'
name: NuGet Package
after_test:
- ps: >-
$ProgramFiles = (${env:ProgramFiles(x86)}, ${env:ProgramFiles} -ne $null)[0]
.\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -filter:"+[*]*" -target:"$ProgramFiles\Microsoft Visual Studio 12.0\Common7\IDE\MSTest.exe" -targetargs:"/testcontainer:$env:APPVEYOR_PROJECT_NAME.Tests/bin/$env:CONFIGURATION/$env:APPVEYOR_PROJECT_NAME.Tests.dll" -output:coverage.xml
.\packages\coveralls.io.1.3.4\tools\coveralls.net.exe --opencover coverage.xml
pip install codecov; codecov -f coverage.xml -X gcov
deploy:
provider: NuGet
api_key:
secure: yVcC9zUQ6Xenpgqa4u8YYZ+5Fva1PlkB5rwpfxb1yziyQheqrFow7u6LGZY9wsWI
skip_symbols: true
artifact: /.*\.nupkg/
-
branches:
only:
- develop
- pull/*
configuration: Debug
platform: Any CPU
version: 1.1.{build}-Dev
pull_requests:
do_not_increment_build_number: true
assembly_info:
patch: true
file: '**\VersionInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}-PreRelease'
before_build:
- nuget restore
build:
project: SaferString.sln
verbosity: normal
environment:
COVERALLS_REPO_TOKEN:
secure: IwyKX1L6Kk0Ly/4Z3YJfz2IJmoO5WgkxJBeYXZ7y8gbMflizzv+RNINoV8P8g5pU
CODECOV_TOKEN:
secure: HXAWrWN8odMnS2FmQ/Iyy3hs7AD/PlRMSbSqFM//rgLTCOATsezlmVo07jzfs+YR
artifacts:
- path: '**/SaferString.*.nupkg'
name: NuGet Package
after_test:
- ps: >-
$ProgramFiles = (${env:ProgramFiles(x86)}, ${env:ProgramFiles} -ne $null)[0]
.\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -filter:"+[*]*" -target:"$ProgramFiles\Microsoft Visual Studio 12.0\Common7\IDE\MSTest.exe" -targetargs:"/testcontainer:$env:APPVEYOR_PROJECT_NAME.Tests/bin/$env:CONFIGURATION/$env:APPVEYOR_PROJECT_NAME.Tests.dll" -output:coverage.xml
.\packages\coveralls.io.1.3.4\tools\coveralls.net.exe --opencover coverage.xml
pip install codecov; codecov -f coverage.xml -X gcov