-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitlab-ci.yml
35 lines (32 loc) · 1.02 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
variables:
GIT_SUBMODULE_STRATEGY: normal
GIT_STRATEGY: fetch
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 BACnetClientExampleCSharp
- "echo namespace CASBACnetStack {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 BACnetClientExampleCSharp
# 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\BACnetClientExampleCSharp.dll