variables: NUGET_PATH: 'C:\dev\tools\NuGet\nuget.exe' MSBUILD_PATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe' XUNIT_PATH: packages\xunit.runner.console\2.4.1\tools\net472 UNITTEST_FOLDER: '.\tests\JeoParody.Test\bin\Release\net48' stages: - build - test - deploy build_job: stage: build tags: - dotnetframework only: - branches script: - '& "$env:NUGET_PATH" restore -PackagesDirectory packages' - '& "$env:MSBUILD_PATH" /p:Configuration=Release /clp:ErrorsOnly' - '& if (Test-Path JeoParody) { Remove-Item JeoParody -Recurse -Confirm:$false }' - '& robocopy .\Categories\fertig JeoParody *.* /S /W:1' - '& robocopy .\src\Jeoparody\bin\Release\ JeoParody Jeoparody.* /W:1' - '& robocopy .\src\Jeoparody\bin\Release\Media JeoParody\Media *.* /S /W:1' artifacts: expire_in: 2 days paths: - '$env:UNITTEST_FOLDER\*.*' - '.\$env:XUNIT_PATH\*.*' - 'JeoParody\*.*' test_job: stage: test tags: - dotnetframework only: - branches script: - '& "$env:XUNIT_PATH\xunit.console.exe" "$env:UNITTEST_FOLDER\Jeoparody.Test.dll"' dependencies: - build_job deploy_job: stage: deploy tags: - dotnetframework only: - branches script: - 'echo "deploying..."' artifacts: name: 'JeoParody-$CI_COMMIT_SHORT_SHA' expire_in: 2 days paths: - 'JeoParody\*.*'