Skip to content

Commit

Permalink
Add .NET 5.0 as a test target (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
atifaziz authored Dec 26, 2020
1 parent 01edeef commit 9342bb9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ script:
- # curl -s https://codecov.io/bash > codecov
- curl -sSL https://raw.githubusercontent.com/codecov/codecov-bash/14662d32a4862918c31efafe4b450de1305a38e1/codecov > codecov
- chmod +x codecov
- ./codecov -f ./MoreLinq.Test/coverage.netcoreapp3.1.opencover.xml
- ./codecov -f ./MoreLinq.Test/coverage.net5.0.opencover.xml
2 changes: 1 addition & 1 deletion MoreLinq.Test/MoreLinq.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<AssemblyTitle>MoreLinq.Test</AssemblyTitle>
<TargetFrameworks>netcoreapp3.1;netcoreapp2.1;net451</TargetFrameworks>
<TargetFrameworks>net5.0;netcoreapp3.1;netcoreapp2.1;net451</TargetFrameworks>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<DebugType>portable</DebugType>
<AssemblyName>MoreLinq.Test</AssemblyName>
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ build_script:
}
test_script:
- cmd: test.cmd
- ps: dotnet reportgenerator -reports:MoreLinq.Test/coverage.netcoreapp3.1.opencover.xml -targetdir:tmp/cover -tag:(git show -q --pretty=%H)
- ps: dotnet reportgenerator -reports:MoreLinq.Test/coverage.net5.0.opencover.xml -targetdir:tmp/cover -tag:(git show -q --pretty=%H)
- ps: Get-ChildItem tmp/cover | Compress-Archive -DestinationPath coverage-report.zip
- cmd: |
cd tmp\cover
Expand Down
2 changes: 2 additions & 0 deletions test.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ goto :EOF
:main
setlocal
call build ^
&& call :test net5.0 Debug ^
&& call :test net5.0 Debug ^
&& call :test netcoreapp2.1 Debug ^
&& call :test netcoreapp2.1 Release ^
&& call :test netcoreapp3.1 Debug ^
Expand Down
4 changes: 2 additions & 2 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [[ -z "$1" ]]; then
else
configs="$1"
fi
for v in 2.1 3.1; do
for f in netcoreapp2.1 netcoreapp3.1 net5.0; do
for c in $configs; do
if [[ "$c" == "Debug" ]]; then
coverage_args="-p:CollectCoverage=true
Expand All @@ -16,7 +16,7 @@ for v in 2.1 3.1; do
else
unset coverage_args
fi
dotnet test --no-build -c $c -f netcoreapp$v MoreLinq.Test $coverage_args
dotnet test --no-build -c $c -f $f MoreLinq.Test $coverage_args
done
done
if [[ -z `which mono 2>/dev/null` ]]; then
Expand Down

0 comments on commit 9342bb9

Please sign in to comment.