-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
71 lines (57 loc) · 3.43 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
version: 0.5.{build}
os: Visual Studio 2015
configuration: Release
environment:
COVERALLS_REPO_TOKEN:
secure: hUwrEfRQVIP+rOtSr+P+5lQ0ILHSnL4aycCsmCan2Qty8v7RPtrle4qMZTs4RvMM
GITHUB_PERSONAL_ACCESS_TOKEN:
secure: Jmpeow5aAcDhUHkwac/AC6MzQciGc9TLgrp5oz4U0gyAwCWGqqxJhmjz3AVrWp/V
install:
- cmd: choco install resharper-clt.portable
- cmd: choco install fxcop
- cinst nunit
- cinst 7zip.commandline
- cinst GitVersion.Portable
- ps: GitVersion /output buildserver /updateassemblyinfo true
- ps: $env:GIT_PRE_RELEASE = !$env:GitVersion_BranchName.Equals("release")
nuget:
account_feed: false
project_feed: false
before_build:
- cmd: nuget restore .\src\BadgesSharp.sln
build:
project: src\BadgesSharp.sln
verbosity: minimal
after_build:
- cmd: >-
"C:\Program Files (x86)\Microsoft Fxcop 10.0\FxCopCmd.exe" /project:.\src\BadgesSharp.FxCop /out:.\tools\fxcop-report.xml
.\src\BadgesSharpCmd\bin\Release\BadgesSharpCmd.exe -o giacomelli -r BadgesSharp -b FxCop -c ".\tools\fxcop-report.xml" -a %GITHUB_PERSONAL_ACCESS_TOKEN%
.\tools\StyleCopCmd\Net.SF.StyleCopCmd.Console\StyleCopCmd.exe -sf .\src\BadgesSharp.sln --styleCopSettingsFile .\src\Settings.StyleCop -of .\tools\stylecop-report.xml --ignoreFilePattern .+Test\.cs
.\src\BadgesSharpCmd\bin\Release\BadgesSharpCmd.exe -o giacomelli -r BadgesSharp -b StyleCop -c ".\tools\stylecop-report.violations.xml" -a %GITHUB_PERSONAL_ACCESS_TOKEN%
C:\ProgramData\chocolatey\lib\resharper-clt.portable\tools\dupfinder.exe /output=.\tools\dupFinder-Report.xml /show-text /exclude=**\*Test.cs;**\*.feature.cs;**\BundleConfig.cs .\src\BadgesSharp.sln
.\src\BadgesSharpCmd\bin\Release\BadgesSharpCmd.exe -o giacomelli -r BadgesSharp -b DupFinder -c .\tools\dupFinder-Report.xml -a %GITHUB_PERSONAL_ACCESS_TOKEN%
.\tools\buildBadgesSharpCmd-CI.bat
test_script:
- ps: >-
.\src\packages\OpenCover.4.6.166\tools\OpenCover.Console.exe -register:user -target:nunit-console.exe -register:user "-targetargs:""src\BadgesSharp.UnitTests\bin\$env:CONFIGURATION\BadgesSharp.UnitTests.dll", "src\BadgesSharp.Infrastructure.FunctionalTests\bin\$env:CONFIGURATION\BadgesSharp.Infrastructure.FunctionalTests.dll", "src\BadgesSharpCmd.FunctionalTests\bin\$env:CONFIGURATION\BadgesSharpCmd.FunctionalTests.dll"" /noshadow" -filter:"+[BadgesSharp]*" -output:opencoverCoverage.xml
.\src\packages\coveralls.net.0.6.0\tools\csmacnz.Coveralls.exe --opencover -i opencoverCoverage.xml --repoToken $env:COVERALLS_REPO_TOKEN --commitId $env:APPVEYOR_REPO_COMMIT --commitBranch $env:APPVEYOR_REPO_BRANCH --commitAuthor $env:APPVEYOR_REPO_COMMIT_AUTHOR --commitEmail $env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL --commitMessage $env:APPVEYOR_REPO_COMMIT_MESSAGE --jobId $env:APPVEYOR_JOB_ID
artifacts:
- path: .\tools\fxcop-report.xml
name: FxCop-Report
- path: .\tools\stylecop-report.xml
name: StyleCop-Report
- path: .\tools\dupFinder-report.xml
name: DupFinder-report
- path: .\build\BadgesSharpCmd.exe
name: BadgesSharpCmd.exe
deploy:
- provider: GitHub
tag: v$(GitVersion_SemVer)
release: v$(GitVersion_SemVer)
auth_token:
secure: kmrAK2bY8lLNv7lClD44qrCnfp2hDGIWgd4CRZ3RPmryhwwnoi/+FU6JxYrazXT0
draft: false
prerelease: $(GIT_PRE_RELEASE)
artifact: build/BadgesSharpCmd.exe
on:
appveyor_repo_tag: true # deploy on tag push only