Adding comments

parent 62693937
# This is a simple gitlab continuous integration example project (compatible with the shared runner provided on gitlab.com)
# using the official mono docker image to build a visual studio project.
#
# MyProject.sln
# MyProject\
# MyProject\
# MyProject.csproj (console application)
# MyProject.Test\
# MyProject.Test.csproj (test library using nuget packages "NUnit" and "NUnit.ConsoleRunner")
#
# Please find the full example project here:
# https://gitlab.com/tobiaskoch/gitlab-ci-example-mono
# see https://hub.docker.com/_/mono/
image: mono:latest
stages:
- test
- build
before_script:
before_script:
- nuget restore -NonInteractive
release:
......@@ -13,12 +27,12 @@ release:
- master
artifacts:
paths:
- ./build/release/
- build/release/MyProject.exe
script:
- msbuild "MyProject.sln" /p:Configuration="Release" /p:Platform="Any CPU" /p:OutputPath="./../../build/release/"
- 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
debug:
stage: test
script:
- msbuild "MyProject.sln" /p:Configuration="Debug" /p:Platform="Any CPU" /p:OutputPath="./../../build/debug/"
- mono packages/NUnit.ConsoleRunner.3.6.0/tools/nunit3-console.exe ./build/debug/MyProject.Test.dll
\ No newline at end of file
- 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
- 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