Update .gitlab-ci.yml

This commit is contained in:
Kai Kriegel 2020-09-17 12:19:50 +00:00
parent a63beeddf0
commit b7d751274a

View File

@ -28,6 +28,7 @@ variables:
TEST_FOLDER: 'Tests\bin\Release'
# DEPLOY_FOLDER: 'P:\Projects\YourApp\Builds'
NUGET_PATH: 'C:\NuGet\nuget.exe'
DOTNET_PATH: 'C:\Program Files\dotnet\dotnet.exe'
MSBUILD_PATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\msbuild.exe'
NUNIT_PATH: 'C:\Program Files (x86)\NUnit.org\nunit-console\nunit3-console.exe'
@ -44,7 +45,7 @@ build_job:
# only:
# - tags # the build process will only be started by git tag commits
script:
# - '& "$env:NUGET_PATH" restore' # restore Nuget dependencies
- '& "$env:DOTNET_PATH" restore' # restore Nuget dependencies
- '& "$env:MSBUILD_PATH" /p:Configuration=Release' # build the project
artifacts:
expire_in: 1 week # save gitlab server space, we copy the files we need to deploy folder later on