-
Notifications
You must be signed in to change notification settings - Fork 29
/
.gitlab-ci.yml
42 lines (39 loc) · 1.47 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
38
39
40
41
42
variables:
PLATFORM_TOOLSET: v143
OCAT_VERSION: 1.6.3
stages:
- build
- package
build_ocat:
before_script:
tags:
- ocat
- server1
stage: build
script:
- 'if exist .\OCAT-Installer\redist ( echo redist directory exists ) else ( mkdir .\OCAT-Installer\redist )'
- 'copy "%VS2022REDISTS%\vc_redist.x64.exe" .\OCAT-Installer\redist\vc_redist.x64.exe'
- 'copy "%VS2022REDISTS%\vc_redist.x64.exe" .\OCAT-Installer\redist\vc_redist.x86.exe'
- 'echo [assembly: AssemblyVersion("%OCAT_VERSION%")] >> Frontend\Properties\AssemblyInfo.cs'
- 'echo [assembly: AssemblyFileVersion("%OCAT_VERSION%")] >> Frontend\Properties\AssemblyInfo.cs'
- 'msbuild OCAT.sln /t:Restore /t:Build /p:Configuration=Release;Platform=x64 /p:PlatformToolset=%PLATFORM_TOOLSET% /verbosity:m'
- 'msbuild OCAT.sln /t:Installer /p:Configuration=Release;Platform=x64 /verbosity:minimal'
- 'msbuild OCAT.sln /t:Install-Bundle /p:Configuration=Release;Platform=x64 /verbosity:minimal'
artifacts:
name: "OCAT-Installer"
paths:
- "OCAT-Installer/bin/x64/Release/OCAT.exe"
package_ocat:
tags:
- windows
- amd64
stage: package
dependencies:
- build_ocat
script:
- echo "Packaging build %CI_COMMIT_REF_NAME%-%CI_COMMIT_SHORT_SHA%"
- 'copy .\OCAT-Installer\bin\x64\Release\OCAT.exe OCAT-%CI_COMMIT_REF_NAME%-%CI_COMMIT_SHORT_SHA%.exe'
artifacts:
name: "OCAT-%CI_COMMIT_REF_NAME%-%CI_COMMIT_SHORT_SHA%"
paths:
- "OCAT-%CI_COMMIT_REF_NAME%-%CI_COMMIT_SHORT_SHA%.exe"