|
|
@ -339,15 +339,24 @@ jobs:
|
|
|
|
- ~/.nuget/packages
|
|
|
|
- ~/.nuget/packages
|
|
|
|
key: gpt4all-csharp-bindings
|
|
|
|
key: gpt4all-csharp-bindings
|
|
|
|
- run:
|
|
|
|
- run:
|
|
|
|
name: "Run C# Tests"
|
|
|
|
name: Build C# Project
|
|
|
|
command: |
|
|
|
|
command: |
|
|
|
|
cd gpt4all-bindings/csharp
|
|
|
|
cd gpt4all-bindings/csharp
|
|
|
|
dotnet test Gpt4All.Tests --filter SKIP_ON_CI=False
|
|
|
|
dotnet build Gpt4All --configuration Release
|
|
|
|
- run:
|
|
|
|
- run:
|
|
|
|
name: Build C# Project
|
|
|
|
name: "Run C# Tests"
|
|
|
|
command: |
|
|
|
|
command: |
|
|
|
|
cd gpt4all-bindings/csharp
|
|
|
|
cd gpt4all-bindings/csharp
|
|
|
|
dotnet build Gpt4All --configuration Release
|
|
|
|
dotnet test Gpt4All.Tests --no-build --filter SKIP_ON_CI!=True --logger "trx"
|
|
|
|
|
|
|
|
- run:
|
|
|
|
|
|
|
|
name: test results
|
|
|
|
|
|
|
|
when: always
|
|
|
|
|
|
|
|
command: |
|
|
|
|
|
|
|
|
dotnet tool install -g trx2junit
|
|
|
|
|
|
|
|
export PATH="$PATH:/root/.dotnet/tools"
|
|
|
|
|
|
|
|
trx2junit tests/**/TestResults/*.trx
|
|
|
|
|
|
|
|
- store_test_results:
|
|
|
|
|
|
|
|
path: tests/TestResults
|
|
|
|
- persist_to_workspace:
|
|
|
|
- persist_to_workspace:
|
|
|
|
root: gpt4all-bindings/csharp/runtimes/linux-x64/native
|
|
|
|
root: gpt4all-bindings/csharp/runtimes/linux-x64/native
|
|
|
|
paths:
|
|
|
|
paths:
|
|
|
@ -392,7 +401,7 @@ jobs:
|
|
|
|
name: "Run C# Tests"
|
|
|
|
name: "Run C# Tests"
|
|
|
|
command: |
|
|
|
|
command: |
|
|
|
|
cd gpt4all-bindings/csharp
|
|
|
|
cd gpt4all-bindings/csharp
|
|
|
|
dotnet.exe test Gpt4All.Tests --filter SKIP_ON_CI=False
|
|
|
|
dotnet.exe test Gpt4All.Tests --filter SKIP_ON_CI!=True
|
|
|
|
- run:
|
|
|
|
- run:
|
|
|
|
name: Build C# Project
|
|
|
|
name: Build C# Project
|
|
|
|
command: |
|
|
|
|
command: |
|
|
|
|