forked from David-Desmaisons/RateLimiter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
22 lines (17 loc) · 899 Bytes
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
image: Visual Studio 2017
before_build:
- dotnet --version
- dotnet restore ./RateLimiter/RateLimiter.csproj --verbosity m
- dotnet restore ./RateLimiter.Tests/RateLimiter.Tests.csproj --verbosity m
- nuget restore
- choco install opencover.portable
build_script:
- dotnet build "RateLimiter.sln" --verbosity quiet --configuration Debug
test_script:
- OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.exe" -targetargs:"RateLimiter.Tests\bin\Debug\net472\RateLimiter.Tests.dll -noshadow" -output:".\coverage.xml" -filter:"+[RateLimiter*]* -[RateLimiter.Test*]*"
# use codecov bash script. Requires powershell and bash to be installed, which both are on the AppVeyor machine image
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"