Skip to content

Commit 106edac

Browse files
authored
Update test deps. (#67)
1 parent 11b5de7 commit 106edac

10 files changed

Lines changed: 28 additions & 21 deletions

File tree

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ env:
1111
matrix:
1212
include:
1313
- os: linux
14+
dist: xenial
1415
sudo: required
15-
dotnet: 2.1.403
16+
dotnet: 2.2.101
1617
- os: osx
1718
osx_image: xcode9 # OSX 10.12
18-
dotnet: 2.1.403
19+
dotnet: 2.2.101
1920
before_install:
2021
- ulimit -n 4096
2122
script:

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ before_build:
1212
build_script:
1313
- msbuild /p:GetVersion=True /p:WriteVersionInfoToBuildLog=True
1414
test_script:
15-
- dotnet test test/Winton.Extensions.Configuration.Consul.Test/ --no-build --configuration Release
15+
- dotnet test test/Winton.Extensions.Configuration.Consul.Test/ --no-build --no-restore --configuration Release
1616
artifacts:
1717
- path: .\**\*.nupkg
1818
name: NuGet

build.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
set -e
44

55
# Build
6-
dotnet build src/Winton.Extensions.Configuration.Consul --configuration Release --framework netstandard2.0
7-
dotnet build test/Winton.Extensions.Configuration.Consul.Test --configuration Release --framework netcoreapp2.1
8-
dotnet build test/Website --configuration Release --framework netcoreapp2.1
6+
dotnet restore
7+
dotnet build src/Winton.Extensions.Configuration.Consul --no-restore --configuration Release --framework netstandard2.0
8+
dotnet build test/Winton.Extensions.Configuration.Consul.Test --no-restore --configuration Release --framework netcoreapp2.2
9+
dotnet build test/Website --no-restore --configuration Release --framework netcoreapp2.2
910

1011
# Unit Test
1112
dotnet test test/Winton.Extensions.Configuration.Consul.Test/ --no-build --no-restore --configuration Release

test/Website/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM microsoft/dotnet:2.1.5-aspnetcore-runtime
1+
FROM microsoft/dotnet:2.2-aspnetcore-runtime
22

3-
COPY bin/Release/netcoreapp2.1/publish /app
3+
COPY bin/Release/netcoreapp2.2/publish /app
44
WORKDIR /app
55

66
EXPOSE 80/tcp
File renamed without changes.

test/Website/IntegrationTests/docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ website:
77
- consul
88
test:
99
build: .
10-
dockerfile: Dockerfile.test
10+
container_name: test
11+
dockerfile: Dockerfile
1112
links:
1213
- consul
1314
- website

test/Website/IntegrationTests/run.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ pushd $( dirname $0 )
66

77
dotnet publish ../ --configuration Release
88
docker-compose rm -f
9-
docker-compose -f docker-compose.yml -p ci up --build --force-recreate -d
10-
exitCode=$(docker wait ci_test_1)
11-
docker logs -f ci_test_1
9+
docker-compose -p ci up --build --force-recreate -d
10+
docker container ls
11+
exitCode=$(docker wait test)
12+
docker logs -f test
1213
docker-compose stop -t 1
1314

1415
popd

test/Website/Startup.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using Microsoft.AspNetCore.Builder;
2+
using Microsoft.AspNetCore.Mvc;
23
using Microsoft.Extensions.Configuration;
34
using Microsoft.Extensions.DependencyInjection;
45
using Swashbuckle.AspNetCore.Swagger;
@@ -30,7 +31,8 @@ public void ConfigureServices(IServiceCollection services)
3031
services
3132
.AddSwaggerGen(c => { c.SwaggerDoc(_Version, new Info { Title = _AppTitle, Version = _Version }); })
3233
.AddSingleton(_configuration)
33-
.AddMvc();
34+
.AddMvc()
35+
.SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
3436
}
3537
}
3638
}

test/Website/Website.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4+
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
45
<AssemblyName>Winton.Extensions.Configuration.Consul.Test.Website</AssemblyName>
56
<GenerateDocumentationFile>False</GenerateDocumentationFile>
67
<NoWarn>$(NoWarn);SA0001;SA1101;SA1309;SA1413;SA1600;SA1633;SA1652</NoWarn>
78
<RootNamespace>Winton.Extensions.Configuration.Consul.Website</RootNamespace>
8-
<TargetFramework>netcoreapp2.1</TargetFramework>
9+
<TargetFramework>netcoreapp2.2</TargetFramework>
910
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
1011
</PropertyGroup>
1112

@@ -17,9 +18,9 @@
1718
<Folder Include="wwwroot\" />
1819
</ItemGroup>
1920
<ItemGroup>
20-
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.5" />
21+
<PackageReference Include="Microsoft.AspNetCore.App" />
2122
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2" PrivateAssets="All" />
22-
<PackageReference Include="Swashbuckle.AspNetCore" Version="3.0.0" />
23+
<PackageReference Include="Swashbuckle.AspNetCore" Version="4.0.1" />
2324
</ItemGroup>
2425
<ItemGroup>
2526
<ProjectReference Include="..\..\src\Winton.Extensions.Configuration.Consul\Winton.Extensions.Configuration.Consul.csproj" />

test/Winton.Extensions.Configuration.Consul.Test/Winton.Extensions.Configuration.Consul.Test.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<IsPackable>False</IsPackable>
66
<NoWarn>$(NoWarn);SA0001;SA1101;SA1118;SA1309;SA1413;SA1600;SA1633;SA1652</NoWarn>
77
<RootNamespace>Winton.Extensions.Configuration.Consul</RootNamespace>
8-
<TargetFramework>netcoreapp2.1</TargetFramework>
8+
<TargetFramework>netcoreapp2.2</TargetFramework>
99
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
1010
</PropertyGroup>
1111

@@ -18,12 +18,12 @@
1818
</ItemGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="FluentAssertions" Version="5.4.2" />
21+
<PackageReference Include="FluentAssertions" Version="5.6.0" />
2222
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
23-
<PackageReference Include="Moq" Version="4.10.0" />
23+
<PackageReference Include="Moq" Version="4.10.1" />
2424
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2" PrivateAssets="All" />
25-
<PackageReference Include="xunit" Version="2.4.0" />
26-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
25+
<PackageReference Include="xunit" Version="2.4.1" />
26+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
2727
</ItemGroup>
2828

2929
</Project>

0 commit comments

Comments
 (0)