-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
37 lines (33 loc) · 1.03 KB
/
.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
variables:
GIT_SUBMODULE_STRATEGY: normal
GIT_STRATEGY: clone
GIT_DEPTH: 1
cache:
key: ${CI_JOB_NAME}
stages:
- build
Build:
stage: build
tags:
- windows
- msvs
before_script:
# Add MSBuild.exe to path
- set PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin
# Update the CIBuildVersion.cs
- cd BACnetElevatorExample
- "echo namespace BACnetElevatorExample{static class CIBuildVersion { public const int CIBUILDNUMBER = %CI_PIPELINE_IID%;}} > CIBuildVersion.cs"
- type CIBuildVersion.cs
- cd ..
script:
# Create the bin directory if it does not exist
- cd BACnetElevatorExample
# Restore any nuget or other dependencies needed for the project
- msbuild /t:Restore /p:Configuration=Release /p:Platform="Any CPU"
# Build and package the project in an apk for android
- msbuild /p:Configuration=Release /p:Platform="Any CPU"
- cd ..\bin
- dir
artifacts:
paths:
- bin\netcoreapp2.1\BACnetElevatorExample.dll