This repository has been archived by the owner on Jul 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
57 lines (44 loc) · 2.24 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
configuration: Release
init:
- git config --global core.autocrlf true
install:
- GitVersion /output buildserver /UpdateAssemblyInfo true
- choco install opencover.portable -y
- choco install nvika -y
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
- pip install codecov
cache:
- src/packages -> **\packages.config
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
before_build:
- nuget restore src
build:
project: src/ScriptCs.ComponentModel.Composition.sln
verbosity: minimal
after_build:
- NVika parsereport "src\ScriptCs.ComponentModel.Composition\bin\Release\static-analysis.sarif.json" --debug --includesource
# build nuget package
- mkdir NugetAssets
- nuget pack src\ScriptCs.ComponentModel.Composition\ScriptCs.ComponentModel.Composition.csproj -Version %GitVersion_NuGetVersion% -OutputDirectory %appveyor_build_folder%\NugetAssets\ -symbols
test_script:
- ps: OpenCover.Console.exe -register:user -filter:"+[ScriptCs.ComponentModel.Composition]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -target:"$env:xunit20\xunit.console.x86.exe" -targetargs:"`"src\ScriptCs.ComponentModel.Composition.Test\bin\Release\ScriptCs.ComponentModel.Composition.Test.dll`" -noshadow -appveyor" -output:coverage.xml -returntargetcode
after_test:
# filter coverage.xml - https://github.com/codecov/codecov-python/issues/85
- "\"C:\\Program Files (x86)\\Microsoft SDKs\\F#\\4.0\\Framework\\v4.0\\fsi\" ./FilterCoverage.fsx"
- codecov -f filtered-coverage.xml -X gcov
artifacts:
- path: src\ScriptCs.ComponentModel.Composition\bin\Release\static-analysis.sarif.json
name: static-analysis.sarif.json
- path: src\ScriptCs.ComponentModel.Composition\bin\Release\ScriptCs.ComponentModel.Composition.dll.CodeAnalysisLog.xml
name: ScriptCs.ComponentModel.Composition.dll.CodeAnalysisLog.xml
- path: NugetAssets\ScriptCs.ComponentModel.Composition.*.symbols.nupkg
name: ScriptCs.ComponentModel.Composition.symbols.nupkg
- path: NugetAssets\ScriptCs.ComponentModel.Composition.*.nupkg
name: ScriptCs.ComponentModel.Composition.nupkg
deploy:
- provider: NuGet
api_key:
secure: NmM24h0TPsfINvy/1Qr4iJkmRjVztuY5umCJ6mzpxSjvuKl48AXjGEcgow+iJwL8
on:
appveyor_repo_tag: true