From a7da520faf828c01dfff674adf3e6f2bc9a09cad Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Sat, 20 Jul 2024 15:15:08 +0000 Subject: [PATCH] Added logging dependencies. --- .../GameServiceWarden.Core.Tests.csproj | 2 ++ .../GameServiceWarden.Core/GameServiceWarden.Core.csproj | 5 +++++ Jenkinsfile | 4 ++-- environment.yml | 5 ++++- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/GameServiceWarden.Tests/GameServiceWarden.Core.Tests/GameServiceWarden.Core.Tests.csproj b/GameServiceWarden.Tests/GameServiceWarden.Core.Tests/GameServiceWarden.Core.Tests.csproj index 555f1af..041430c 100644 --- a/GameServiceWarden.Tests/GameServiceWarden.Core.Tests/GameServiceWarden.Core.Tests.csproj +++ b/GameServiceWarden.Tests/GameServiceWarden.Core.Tests/GameServiceWarden.Core.Tests.csproj @@ -7,6 +7,8 @@ + + diff --git a/GameServiceWarden/GameServiceWarden.Core/GameServiceWarden.Core.csproj b/GameServiceWarden/GameServiceWarden.Core/GameServiceWarden.Core.csproj index e4f51a8..e26c692 100644 --- a/GameServiceWarden/GameServiceWarden.Core/GameServiceWarden.Core.csproj +++ b/GameServiceWarden/GameServiceWarden.Core/GameServiceWarden.Core.csproj @@ -5,6 +5,11 @@ + + + + + Exe net8.0 diff --git a/Jenkinsfile b/Jenkinsfile index ecf237b..4870405 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,13 +9,13 @@ pipeline { stage ("Install") { steps { sh "conda update conda -y -q" - sh "conda env update -n base --file environment.yml" + sh "conda env update -n base --file environment.yml -q" sh "conda run -n base dotnet restore gameservicewarden.sln" } } stage ("Test") { steps { - sh "conda run -n base dotnet test --logger xunit --no-restore GameServiceWarden.Tests" + sh returnStatus: true, script: 'conda run -n base dotnet test --logger xunit --no-restore gameservicewarden.sln' xunit([xUnitDotNet(excludesPattern: '', pattern: 'GameServiceWarden.Tests/*.Tests/TestResults/*.xml', stopProcessingIfError: true)]) } } diff --git a/environment.yml b/environment.yml index a873638..3f83ef4 100644 --- a/environment.yml +++ b/environment.yml @@ -3,4 +3,7 @@ channels: - conda-forge dependencies: - dotnet - - icu \ No newline at end of file + - icu + - tar + - zip + - nodejs \ No newline at end of file