-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
75 lines (56 loc) · 2.44 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
# version format
version: 1.0.{build}
branches:
# whitelist
only:
- master
# blacklist
except:
- gh-pages
# Maximum number of concurrent jobs for the project
max_jobs: 1
# Build worker image (VM template)
image: Visual Studio 2019
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
# scripts that run after cloning repository
install:
- nuget restore src\vcsparser.sln
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "{version}"
assembly_file_version: "{version}"
assembly_informational_version: "{version}"
platform: Any CPU
configuration: Release
build:
parallel: true
project: src\vcsparser.sln
before_build:
build_script:
after_build:
before_package:
test_script:
- .\src\packages\OpenCover.4.7.1221\tools\OpenCover.Console.exe -register:appveyor -returntargetcode -target:".\src\packages\xunit.runner.console.2.4.1\tools\net452\xunit.console.x86.exe" -targetargs:".\src\vcsparser.unittests\bin\Release\vcsparser.unittests.dll .\src\vcsparser.PowerShell.unittests\bin\Release\vcsparser.PowerShell.unittests.dll .\src\vcsparser.bugdatabase.azuredevops.unittests\bin\Release\vcsparser.bugdatabase.azuredevops.unittests.dll -noshadow" -output:"coverage.xml" -filter:"+[vcsparser.core*]* -[vcsparser.*unittests*]* +[vcsparser.PowerShell*]* -[vcsparser.PowerShell]vcsparser.PowerShell.CmdletAdapter +[vcsparser.bugdatabase*]* -[vcsparser.bugdatabase.azuredevops]vcsparser.bugdatabase.azuredevops.AzureDevOpsFactory -[vcsparser.core]vcsparser.core.bugdatabase.BugDatabaseFactory -[vcsparser.core]vcsparser.core.bugdatabase.HttpClientWrapper" -excludebyattribute:"*.ExcludeFromCodeCoverage*"
after_test:
- ps: |
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
bash codecov.sh -f "coverage.xml" -t 565df92a-14b9-4de0-bf28-72c4946fd4b4
Write-Host "Last exit code: $LASTEXITCODE"
artifacts:
# pushing entire folder as a zip archive
- path: src\vcsparser\bin\Release
name: vcsparser-exe
- path: src\vcsparser.PowerShell\bin\Release
name: vcsparser-PowerShell
- path: src\vcsparser.bugdatabase.azuredevops\bin\Release
name: vcsparser-BugDatabase-AzureDevOps
- path: coverage.xml
name: coverage-report
notifications:
- provider: Email
to:
- ericlemes@gmail.com