Skip to content

Commit 9765348

Browse files
committed
dockerfile for tests run
1 parent 40726f2 commit 9765348

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test.Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-test
2+
3+
WORKDIR /Wissance.Hydra/Wissance.Hydra
4+
COPY . .
5+
SHELL [ "bash", "-c" ]
6+
RUN dotnet build
7+
ENTRYPOINT error=0; \
8+
for dir in *.Tests; do \
9+
dotnet test --logger "junit;LogFilePath=/TestResults/$dir.xml" $dir 2>&1 > /TestResults/$dir.log; \
10+
exit_code=${PIPESTATUS[0]}; \
11+
[ $exit_code -ne 0 ] && error=$exit_code; \
12+
done; \
13+
exit $error

0 commit comments

Comments
 (0)