Improving ci build file

parent 1408c597
...@@ -15,24 +15,28 @@ ...@@ -15,24 +15,28 @@
image: mono:latest image: mono:latest
stages: stages:
- test - test
- build - build
before_script: before_script:
- nuget restore -NonInteractive - nuget restore -NonInteractive
release: release:
stage: build stage: build
only: only:
- master - master
artifacts: artifacts:
paths: paths:
- build/release/MyProject.exe - build/release/MyProject.exe
script: script:
- msbuild "MyProject.sln" /p:Configuration="Release" /p:Platform="Any CPU" /p:OutputPath="./../../build/release/" # The output path is relative to the position of the csproj-file # The output path is relative to the position of the csproj-file
- msbuild /p:Configuration="Release" /p:Platform="Any CPU"
/p:OutputPath="./../../build/release/" "MyProject.sln"
debug: debug:
stage: test stage: test
script: script:
- msbuild "MyProject.sln" /p:Configuration="Debug" /p:Platform="Any CPU" /p:OutputPath="./../../build/debug/" # The output path is relative to the position of the csproj-file # The output path is relative to the position of the csproj-file
- mono packages/NUnit.ConsoleRunner.3.6.0/tools/nunit3-console.exe build/debug/MyProject.Test.dll - msbuild /p:Configuration="Debug" /p:Platform="Any CPU"
\ No newline at end of file /p:OutputPath="./../../build/debug/" "MyProject.sln"
- mono packages/NUnit.ConsoleRunner.3.6.0/tools/nunit3-console.exe build/debug/MyProject.Test.dll
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment