Skip to content

Commit 1671d38

Browse files
committed
CTR update dotnet docker test set up to avoid masking build errors
1 parent 92f10e1 commit 1671d38

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

gremlin-dotnet/docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,11 @@ services:
5858
- VERTEX_LABEL=dotnet-example
5959
working_dir: /gremlin-dotnet
6060
command: >
61-
bash -c "dotnet tool update -g dotnet-trx; dotnet test ./Gremlin.Net.sln -c Release --logger trx; /root/.dotnet/tools/trx;
61+
bash -c "find . -path '*/TestResults/*.trx' -delete 2>/dev/null || true;
62+
dotnet tool update -g dotnet-trx; dotnet test ./Gremlin.Net.sln -c Release --logger trx;
6263
EXIT_CODE=$$?;
64+
/root/.dotnet/tools/trx || true;
65+
if [ $$EXIT_CODE -ne 0 ]; then echo '❌ dotnet test FAILED (exit code '$$EXIT_CODE') — build or test errors above'; fi;
6366
echo 'Running examples...';
6467
dotnet run --project Examples/BasicGremlin/BasicGremlin.csproj;
6568
dotnet run --project Examples/Connections/Connections.csproj;

0 commit comments

Comments
 (0)