-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathappveyor.yml
More file actions
34 lines (31 loc) · 1.56 KB
/
appveyor.yml
File metadata and controls
34 lines (31 loc) · 1.56 KB
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
image: Visual Studio 2019
before_build:
- nuget restore
- choco install opencover.portable
- choco install codecov
#- choco install dotnet-sdk
build:
project: WinPath.sln
verbosity: minimal
test_script:
#- cp "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Console.dll" "C:\projects\WinPath\bin\WinPath.Tests\Debug\net5.0"
#- cd "C:\projects\WinPath"
#- dotnet publish -c Debug --runtime win10-x64 --self-contained true
#- cp "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Runtime.dll" "%xunit20%\System.Runtime.dll"
#- OpenCover.Console.exe -register:user -target:".\bin\WinPath.Tests\Debug\net5.0\WinPath.Tests.dll" -output:".\WinPath_coverage.xml" -oldstyle
# OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -targetargs:".\MyUnitTests\bin\Debug\MyUnitTests.dll -noshadow" -filter:"+[UnitTestTargetProject*]* -[MyUnitTests*]*" -output:".\MyProject_coverage.xml"
- dotnet tool install --global coverlet.console --verbosity q
- takeown /F %APPDATA% # Required for access
- icacls %APPDATA% /grant administrators:F # in %APPDATA%.
- cd C:\projects\WinPath\
- dotnet test --collect:"XPlat Code Coverage" --settings "./WinPath.Tests/coverage.settings" --verbosity n
- pwd
- cd "WinPath.Tests/TestResults/"
- for /d %%A in (*) do cd %%A
- pwd
- dir
- move coverage.opencover.xml C:\projects\WinPath\WinPath_coverage.xml
- codecov -f "C:\projects\WinPath\WinPath_coverage.xml" -t %CODECOV_TOKEN%
- curl -s https://codecov.io/bash > codecov
- chmod +x codecov
#- codecov -f "WinPath_coverage.xml" -t ${{ secrets.CODECOV_TOKEN }}