From 33ead4cbf1dbb4ef2670bee3aa6f7b0416f6d788 Mon Sep 17 00:00:00 2001 From: mvenditto Date: Fri, 16 Jun 2023 15:11:07 +0100 Subject: [PATCH] tests on windows --- .circleci/continue_config.yml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/.circleci/continue_config.yml b/.circleci/continue_config.yml index c608e10e..deee364c 100644 --- a/.circleci/continue_config.yml +++ b/.circleci/continue_config.yml @@ -398,20 +398,30 @@ jobs: paths: - C:\Users\circleci\.nuget\packages key: gpt4all-csharp-bindings - - run: - name: "Run C# Tests" - command: | - cd gpt4all-bindings/csharp - dotnet.exe test Gpt4All.Tests --filter SKIP_ON_CI!=True - run: name: Build C# Project command: | cd gpt4all-bindings/csharp dotnet.exe build Gpt4All --configuration Release + - run: + name: "Run C# Tests" + command: | + cd gpt4all-bindings/csharp + dotnet.exe test Gpt4All.Tests --filter SKIP_ON_CI!=True --logger "trx" + - run: + name: test results + when: always + command: | + cd gpt4all-bindings/csharp/Gpt4All.Tests + dotnet tool install -g trx2junit + export $Env:Path += ";$Env:USERPROFILE\.dotnet\tools" + trx2junit TestResults/*.trx + - store_test_results: + path: gpt4all-bindings/csharp/Gpt4All.Tests/TestResults - persist_to_workspace: - root: gpt4all-bindings/csharp/runtimes/win-x64/native + root: gpt4all-bindings/csharp paths: - - "*.dll" + - runtimes/win-x64/native/ store-and-upload-nupkgs: docker: