This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
gameservicewarden/Jenkinsfile

22 lines
732 B
Plaintext
Raw Normal View History

pipeline {
agent any
stages {
stage ("Install") {
2022-12-01 17:54:08 +00:00
steps {
sh "mamba env update --file environment.yml"
2022-12-01 17:57:25 +00:00
sh "echo 'mamba activate gameservicewarden' >> ~/.bashrc"
2022-12-01 18:13:59 +00:00
sh "git submodule update --init --recursive"
2022-12-01 17:54:08 +00:00
sh "dotnet restore GameServiceWarden"
sh "dotnet restore GameServiceWarden.Tests"
}
}
stage ("Test") {
2022-12-01 17:54:08 +00:00
steps {
2022-12-01 18:13:59 +00:00
sh "dotnet test --logger xunit --no-restore GameServiceWarden.Tests"
2022-12-01 17:54:08 +00:00
xunit([xUnitDotNet(excludesPattern: '', pattern: 'GameServiceWarden.Tests/*.Tests/TestResults/*.xml', stopProcessingIfError: true)])
}
}
}
}