forked from tunnelvisionlabs/dotnet-threading
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
35 lines (35 loc) · 3.98 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
version: 1.0.{build}
os: Visual Studio 2015
configuration: Release
environment:
DELAY_TOLERANCE_MS: 50
TIMING_GRANULARITY_MS: 30
init:
- git config --global core.autocrlf true
build_script:
- cd build
- powershell -Command .\build.ps1 -VisualStudioVersion "14.0" -InstallSHFB -Verbosity minimal -Logger "${env:ProgramFiles}\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- cd ..
after_build:
- cd build
- powershell -Command .\appveyor-deploy-docs.ps1
- cd ..
test_script:
- vstest.console /logger:Appveyor /TestCaseFilter:"TestCategory!=WebRequest" "C:\projects\dotnet-threading\Tests\UnitTest.RackspaceThreading\bin\net45\%CONFIGURATION%\UnitTest.RackspaceThreading.net45.dll"
- vstest.console /logger:Appveyor /TestCaseFilter:"TestCategory!=WebRequest" "C:\projects\dotnet-threading\Tests\UnitTest.RackspaceThreading\bin\portable-net45\%CONFIGURATION%\UnitTest.RackspaceThreading.portable_net45.dll"
- vstest.console /logger:Appveyor /TestCaseFilter:"TestCategory!=WebRequest" "C:\projects\dotnet-threading\Tests\UnitTest.RackspaceThreading\bin\portable-net40\%CONFIGURATION%\UnitTest.RackspaceThreading.portable_net40.dll"
- vstest.console /logger:Appveyor /TestCaseFilter:"TestCategory!=WebRequest" "C:\projects\dotnet-threading\Tests\UnitTest.RackspaceThreading\bin\net40-client\%CONFIGURATION%\UnitTest.RackspaceThreading.net40.dll"
- vstest.console /logger:Appveyor /TestCaseFilter:"TestCategory!=WebRequest" "C:\projects\dotnet-threading\Tests\UnitTest.RackspaceThreading\bin\net35-client\%CONFIGURATION%\UnitTest.RackspaceThreading.net35.dll"
after_test:
- .\packages\OpenCover.4.6.166\tools\OpenCover.Console.exe -register:user -target:"vstest.console.exe" -targetargs:"/TestCaseFilter:TestCategory!=WebRequest C:\projects\dotnet-threading\Tests\UnitTest.RackspaceThreading\bin\net45\%CONFIGURATION%\UnitTest.RackspaceThreading.net45.dll" -filter:"+[Rackspace*]* +[UnitTest*]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -hideskipped:All -output:.\Threading_coverage.xml
- .\packages\OpenCover.4.6.166\tools\OpenCover.Console.exe -register:user -target:"vstest.console.exe" -targetargs:"/TestCaseFilter:TestCategory!=WebRequest C:\projects\dotnet-threading\Tests\UnitTest.RackspaceThreading\bin\portable-net45\%CONFIGURATION%\UnitTest.RackspaceThreading.portable_net45.dll" -filter:"+[Rackspace*]* +[UnitTest*]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -hideskipped:All -output:.\Threading_coverage.xml -mergeoutput
- .\packages\OpenCover.4.6.166\tools\OpenCover.Console.exe -register:user -target:"vstest.console.exe" -targetargs:"/TestCaseFilter:TestCategory!=WebRequest C:\projects\dotnet-threading\Tests\UnitTest.RackspaceThreading\bin\portable-net40\%CONFIGURATION%\UnitTest.RackspaceThreading.portable_net40.dll" -filter:"+[Rackspace*]* +[UnitTest*]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -hideskipped:All -output:.\Threading_coverage.xml -mergeoutput
- .\packages\OpenCover.4.6.166\tools\OpenCover.Console.exe -register:user -target:"vstest.console.exe" -targetargs:"/TestCaseFilter:TestCategory!=WebRequest C:\projects\dotnet-threading\Tests\UnitTest.RackspaceThreading\bin\net40-client\%CONFIGURATION%\UnitTest.RackspaceThreading.net40.dll" -filter:"+[Rackspace*]* +[UnitTest*]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -hideskipped:All -output:.\Threading_coverage.xml -mergeoutput
- .\packages\OpenCover.4.6.166\tools\OpenCover.Console.exe -register:user -target:"vstest.console.exe" -targetargs:"/TestCaseFilter:TestCategory!=WebRequest C:\projects\dotnet-threading\Tests\UnitTest.RackspaceThreading\bin\net35-client\%CONFIGURATION%\UnitTest.RackspaceThreading.net35.dll" -filter:"+[Rackspace*]* +[UnitTest*]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -hideskipped:All -output:.\Threading_coverage.xml -mergeoutput
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
- pip install codecov
- codecov -f "Threading_coverage.xml"
# preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
cache:
- packages -> **\packages.config
- .shfb -> build\build.ps1