Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .NET 5.0 as a test target #777

Merged
merged 2 commits into from
Dec 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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