forked from microsoft/perfview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
30 lines (30 loc) · 2.55 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
version: 1.0.{build}
branches:
only:
- master
image: Visual Studio 2017
init:
- git config --global core.autocrlf true
configuration:
- Debug
- Release
environment:
image_flag: 2017
before_build:
- nuget restore
build:
project: PerfView.sln
verbosity: minimal
test_script:
- .\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -targetargs:"C:\projects\perfview\src\LinuxEvent.Tests\bin\%configuration%\net46\LinuxTracing.Tests.dll -noshadow -appveyor" -threshold:1 -oldStyle -returntargetcode -filter:"+[*]* -[Xunit*]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -excludebyfile:*\*Designer.cs -hideskipped:All -output:.\PerfView_coverage.xml
- .\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -targetargs:"C:\projects\perfview\src\TraceEvent\Ctf\CtfTracing.Tests\bin\%configuration%\net46\Tests.dll -noshadow -appveyor" -threshold:1 -oldStyle -returntargetcode -filter:"+[*]* -[Xunit*]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -excludebyfile:*\*Designer.cs -hideskipped:All -mergebyhash -mergeoutput -output:.\PerfView_coverage.xml
- .\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -targetargs:"C:\projects\perfview\src\TraceEvent\TraceEvent.Tests\bin\%configuration%\net46\TraceEventTests.dll -noshadow -appveyor" -threshold:1 -oldStyle -returntargetcode -filter:"+[*]* -[Xunit*]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -excludebyfile:*\*Designer.cs -hideskipped:All -mergebyhash -mergeoutput -output:.\PerfView_coverage.xml
- .\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -targetargs:"C:\projects\perfview\src\PerfView.Tests\bin\%configuration%\net46\PerfViewTests.dll -noshadow -diagnostics -appveyor" -threshold:1 -oldStyle -returntargetcode -filter:"+[*]* -[Xunit*]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -excludebyfile:*\*Designer.cs -hideskipped:All -mergebyhash -mergeoutput -output:.\PerfView_coverage.xml
- .\packages\Codecov.1.0.1\tools\codecov.exe -n "VS%image_flag% %configuration%" -f "PerfView_coverage.xml" --flag "%image_flag%,%configuration%"
# preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
cache:
- packages -> **\packages.config
artifacts:
- path: 'src\PerfView\bin\$(configuration)\net45\PerfView.exe'
- path: 'src\PerfView\bin\$(configuration)\net45\PerfView64.exe'
- path: 'src\TraceEvent\bin\$(configuration)\*.nupkg'