-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.ci.test.yml
19 lines (18 loc) · 1.84 KB
/
docker-compose.ci.test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
version: '3.6'
services:
passwd-service-ci-test:
# TODO: Investigate why dotnet test hangs in Docker when running the integration project.
# command: >
# /bin/bash -c "dotnet tool install dotnet-reportgenerator-globaltool --tool-path ./tools &&
# dotnet test ./test/PasswdService.Tests/PasswdService.Tests.csproj --configuration Release --logger 'trx;LogFileName=../../../testresults/PasswdService.Tests.xml' --no-build --no-restore /p:CollectCoverage=true /p:CoverletOutput='../../coverage/' /p:CoverletOutputFormat=cobertura /p:Include='[PasswdService]*' &&
# mv ./coverage/coverage.cobertura.xml ./coverage/PasswdService.Tests.xml &&
# dotnet test ./test/PasswdService.IntegrationTests/PasswdService.IntegrationTests.csproj --configuration Release --logger 'trx;LogFileName=../../../testresults/PasswdService.IntegrationTests.xml' --no-build --no-restore /p:CollectCoverage=true /p:CoverletOutput='../../coverage/' /p:CoverletOutputFormat=cobertura /p:Include='[PasswdService]*' &&
# mv ./coverage/coverage.cobertura.xml ./coverage/PasswdService.IntegrationTests.xml &&
# ./tools/reportgenerator -reports:./coverage/PasswdService.Tests.xml;./coverage/PasswdService.IntegrationTests.xml -reporttypes:Cobertura -targetdir:./coverage/"
command: >
/bin/bash -c "dotnet test ./test/PasswdService.Tests/PasswdService.Tests.csproj --configuration Release --logger 'trx;LogFileName=../../../testresults/PasswdService.Tests.xml' --no-build --no-restore /p:CollectCoverage=true /p:CoverletOutput='../../coverage/' /p:CoverletOutputFormat=cobertura /p:Include='[PasswdService]*' &&
mv ./coverage/coverage.cobertura.xml ./coverage/PasswdService.Tests.xml"
image: mcr.microsoft.com/dotnet/core/sdk:2.2-stretch
volumes:
- .:/src
working_dir: /src