forked from Serg-Norseman/GEDKeeper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
43 lines (38 loc) · 984 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#image: microsoft/dotnet:latest
#image: microsoft/dotnet-framework
image: mono:latest
#before_script:
# - git submodule sync --recursive
# - git submodule update --init --recursive
stages:
- build
- test
- deploy
build_job:
stage: build
script:
# - echo "Restoring NuGet packages..."
# - nuget restore "./projects/GEDKeeper2.linux.sln"
- echo "Starting build..."
- 'msbuild /consoleloggerparameters:ErrorsOnly /maxcpucount /nologo /p:Configuration=Debug /p:CIMode=true /p:MonoCS=true /verbosity:quiet "./projects/GEDKeeper2.linux.sln"'
artifacts:
expire_in: 1 week
untracked: true
only:
- master
test_job:
stage: test
script:
- echo "Starting tests..."
- 'nunit-console ./projects/GKTests/bin/Debug/GKTests.dll'
artifacts:
expire_in: 1 week
dependencies:
- build_job
deploy_job:
stage: deploy
script:
- echo "Starting deploy..."
dependencies:
- build_job
- test_job