Skip to content

Commit 1cb6554

Browse files
author
Filipe GOMES PEIXOTO
committed
Update test project to test ef core 2 and 3
1 parent e5aff39 commit 1cb6554

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

.travis.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
language: csharp
22
mono: none
3-
dotnet: 2.2.105
43

54
env:
65
global:
@@ -15,9 +14,19 @@ matrix:
1514
- os: linux
1615
sudo: required
1716
dist: xenial
18-
name: Linux (Ubuntu Xenial)
17+
dotnet: 2.2
18+
name: .NET Core 2 : Linux (Ubuntu Xenial)
19+
- os: Linux
20+
sudo: required
21+
dist: xenial
22+
dotnet: 3.0.100
23+
name: .NET Core 3 : Linux (Ubuntu Xenial)
24+
- os: osx
25+
dotnet: 2.2
26+
name: .NET Core 2 : Mac OS X
1927
- os: osx
20-
name: Mac OS X
28+
dotnet: 3.0.100
29+
name: .NET Core 3 : Mac OS X
2130

2231
script:
2332
- dotnet restore

test/EntityFrameworkCore.DataEncryption.Test/EntityFrameworkCore.DataEncryption.Test.csproj

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.0</TargetFramework>
4+
<TargetFrameworks>netcoreapp2.2;netcoreapp3.0</TargetFrameworks>
55

66
<IsPackable>false</IsPackable>
77

@@ -11,14 +11,17 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="coverlet.msbuild" Version="2.6.0">
14+
<PackageReference Include="coverlet.msbuild" Version="2.7.0">
1515
<PrivateAssets>all</PrivateAssets>
1616
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
1717
</PackageReference>
18-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.0.0" />
19-
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="3.0.0" />
20-
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="3.0.0" />
21-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1" />
18+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.0.0" Condition="'$(TargetFramework)' == 'netcoreapp3.0'" />
19+
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="3.0.0" Condition="'$(TargetFramework)' == 'netcoreapp3.0'" />
20+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="3.0.0" Condition="'$(TargetFramework)' == 'netcoreapp3.0'" />
21+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.1.0" Condition="'$(TargetFramework)' == 'netcoreapp2.2'" />
22+
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="2.1.0" Condition="'$(TargetFramework)' == 'netcoreapp2.2'" />
23+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.1.0" Condition="'$(TargetFramework)' == 'netcoreapp2.2'" />
24+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
2225
<PackageReference Include="xunit" Version="2.4.1" />
2326
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
2427
<PrivateAssets>all</PrivateAssets>

0 commit comments

Comments
 (0)