Browse Source

Build files updated.

pull/206/head
Sebastian Stehle 8 years ago
parent
commit
f5d5f76228
  1. 3
      Dockerfile
  2. 3
      Dockerfile.build
  3. 22
      tests/RunCoverage.ps1

3
Dockerfile

@ -47,8 +47,7 @@ RUN cp -a /tmp/node_modules /src/Squidex/ \
RUN dotnet restore \
&& dotnet test tests/Squidex.Infrastructure.Tests/Squidex.Infrastructure.Tests.csproj \
&& dotnet test tests/Squidex.Domain.Apps.Core.Tests/Squidex.Domain.Apps.Core.Tests.csproj \
&& dotnet test tests/Squidex.Domain.Apps.Read.Tests/Squidex.Domain.Apps.Read.Tests.csproj \
&& dotnet test tests/Squidex.Domain.Apps.Write.Tests/Squidex.Domain.Apps.Write.Tests.csproj \
&& dotnet test tests/Squidex.Domain.Apps.Entities.Tests/Squidex.Domain.Apps.Entities.Tests.csproj \
&& dotnet test tests/Squidex.Domain.Users.Tests/Squidex.Domain.Users.Tests.csproj
# Publish

3
Dockerfile.build

@ -44,8 +44,7 @@ RUN cp -a /tmp/node_modules /src/Squidex/ \
RUN dotnet restore \
&& dotnet test tests/Squidex.Infrastructure.Tests/Squidex.Infrastructure.Tests.csproj \
&& dotnet test tests/Squidex.Domain.Apps.Core.Tests/Squidex.Domain.Apps.Core.Tests.csproj \
&& dotnet test tests/Squidex.Domain.Apps.Read.Tests/Squidex.Domain.Apps.Read.Tests.csproj \
&& dotnet test tests/Squidex.Domain.Apps.Write.Tests/Squidex.Domain.Apps.Write.Tests.csproj \
&& dotnet test tests/Squidex.Domain.Apps.Entities.Tests/Squidex.Domain.Apps.Entities.Tests.csproj \
&& dotnet test tests/Squidex.Domain.Users.Tests/Squidex.Domain.Users.Tests.csproj
# Publish

22
tests/RunCoverage.ps1

@ -1,8 +1,7 @@
Param(
[switch]$infrastructure,
[switch]$appsCore,
[switch]$appsRead,
[switch]$appsWrite,
[switch]$appsEntities,
[switch]$users,
[switch]$all
)
@ -43,25 +42,14 @@ if ($all -Or $appsCore) {
-oldStyle
}
if ($all -Or $appsRead) {
if ($all -Or $appsEntities) {
&"$folderHome\.nuget\packages\OpenCover\4.6.519\tools\OpenCover.Console.exe" `
-register:user `
-target:"C:\Program Files\dotnet\dotnet.exe" `
-targetargs:"test $folderWorking\Squidex.Domain.Apps.Read.Tests\Squidex.Domain.Apps.Read.Tests.csproj" `
-filter:"+[Squidex.Domain.Apps.Read*]*" `
-targetargs:"test $folderWorking\Squidex.Domain.Apps.Entities.Tests\Squidex.Domain.Apps.Entities.Tests.csproj" `
-filter:"+[Squidex.Domain.Apps.Entities*]*" `
-skipautoprops `
-output:"$folderWorking\$folderReports\Read.xml" `
-oldStyle
}
if ($all -Or $appsWrite) {
&"$folderHome\.nuget\packages\OpenCover\4.6.519\tools\OpenCover.Console.exe" `
-register:user `
-target:"C:\Program Files\dotnet\dotnet.exe" `
-targetargs:"test $folderWorking\Squidex.Domain.Apps.Write.Tests\Squidex.Domain.Apps.Write.Tests.csproj" `
-filter:"+[Squidex.Domain.Apps.Write*]*" `
-skipautoprops `
-output:"$folderWorking\$folderReports\Write.xml" `
-output:"$folderWorking\$folderReports\Entities.xml" `
-oldStyle
}

Loading…
Cancel
Save