Skip to content

Commit 715c47b

Browse files
committed
Update tests to .NET 6 + 7 with alpine images
1 parent a9a28c0 commit 715c47b

File tree

6 files changed

+6
-117
lines changed

6 files changed

+6
-117
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ env:
2929
- SDK=DartStable
3030
- SDK=Deno1193
3131
- SDK=Deno1303
32-
- SDK=DotNet31
33-
- SDK=DotNet50
3432
- SDK=DotNet60
33+
- SDK=DotNet70
3534
- SDK=FlutterStable
3635
- SDK=FlutterBeta
3736
- SDK=Go112

tests/DotNet60Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class DotNet60Test extends Base
1717
'cp tests/languages/dotnet/Tests60.csproj tests/sdks/dotnet/src/test/Tests.csproj',
1818
];
1919
protected string $command =
20-
'docker run --rm -v $(pwd):/app -w /app/tests/sdks/dotnet/src/test/ mcr.microsoft.com/dotnet/sdk:6.0-alpine dotnet test --verbosity normal --framework net6.0';
20+
'docker run --rm -v $(pwd):/app -w /app/tests/sdks/dotnet/src/test/ mcr.microsoft.com/dotnet/sdk:6.0-alpine3.17 dotnet test --verbosity normal --framework net6.0';
2121

2222
protected array $expectedOutput = [
2323
...Base::FOO_RESPONSES,

tests/DotNet50Test.php renamed to tests/DotNet70Test.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Tests;
44

5-
class DotNet50Test extends Base
5+
class DotNet70Test extends Base
66
{
77
protected string $sdkName = 'dotnet';
88
protected string $sdkPlatform = 'server';
@@ -14,10 +14,10 @@ class DotNet50Test extends Base
1414
protected array $build = [
1515
'mkdir -p tests/sdks/dotnet/src/test',
1616
'cp tests/languages/dotnet/Tests.cs tests/sdks/dotnet/src/test/Tests.cs',
17-
'cp tests/languages/dotnet/Tests50.csproj tests/sdks/dotnet/src/test/Tests.csproj',
17+
'cp tests/languages/dotnet/Tests70.csproj tests/sdks/dotnet/src/test/Tests.csproj',
1818
];
1919
protected string $command =
20-
'docker run --rm -v $(pwd):/app -w /app/tests/sdks/dotnet/src/test/ mcr.microsoft.com/dotnet/sdk:5.0-bullseye-slim dotnet test --verbosity normal --framework net5.0';
20+
'docker run --rm -v $(pwd):/app -w /app/tests/sdks/dotnet/src/test/ mcr.microsoft.com/dotnet/sdk:7.0-alpine3.17 dotnet test --verbosity normal --framework net7.0';
2121

2222
protected array $expectedOutput = [
2323
...Base::FOO_RESPONSES,

tests/languages/dotnet/Tests31.csproj

Lines changed: 0 additions & 14 deletions
This file was deleted.

tests/languages/dotnet/Tests50.csproj renamed to tests/languages/dotnet/Tests70.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net5.0</TargetFrameworks>
3+
<TargetFrameworks>net7.0</TargetFrameworks>
44
<LangVersion>latest</LangVersion>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>

tests/languages/dotnet/tests.ps1

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)