1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-14 22:42:34 +02:00
ScreenPlay/.gitlab-ci.yml

46 lines
1.9 KiB
YAML
Raw Normal View History

2018-11-08 21:08:33 +01:00
stages:
- build
build:windows:
stage: build
tags:
- vs2017
- windows
before_script:
- git clean -xdf
- git submodule sync --recursive
- git submodule update --init --recursive
2019-12-05 15:53:47 +01:00
# Needs MSVC 2017 installed!
# Setup vcvars32.bat manually because this is powershell and MS does not have something simmilar for PS. Wtf?
# https://gist.github.com/justinian/81a2e55c89e8301a8a96
# https://stackoverflow.com/questions/2124753/how-can-i-use-powershell-with-the-visual-studio-command-prompt
- $tempFile = [IO.Path]::GetTempFileName()
- cmd /c " `"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvars32.bat`" && set > `"$tempFile`" "
- Get-Content $tempFile | Foreach-Object {if($_ -match "^(.*?)=(.*)$"){Set-Content "env:\$($matches[1])" $matches[2]}}
- Remove-Item $tempFile
- $Env:Path += ';C:\Qt\5.14.0\msvc2017_64\bin'
- $Env:Path += ';C:\Qt\Tools\QtCreator\bin'
- $env:path -split ";"
2018-11-08 21:08:33 +01:00
script:
2019-12-05 15:53:47 +01:00
- call install-dependencies.bat
- mkdir BUILD
- mkdir PACKAGE
- cd BUILD
- qmake.exe ../ScreenPlay.pro -spec win32-msvc "CONFIG+=release"
- jom.exe qmake_all
- jom.exe -j8
- jom.exe install
- xcopy /s /y ScreenPlay\release ..\PACKAGE
- xcopy /s /y ScreenPlaySDK\release ..\PACKAGE
- xcopy /s /y ScreenPlayWidget\release ..\PACKAGE
- xcopy /s /y ScreenPlayWallpaper\release ..\PACKAGE
- cd ..
- windeployqt.exe --release --qmldir ScreenPlay/qml PACKAGE/ScreenPlay.exe
- windeployqt.exe --release --qmldir ScreenPlayWallpaper/qml PACKAGE/ScreenPlayWallpaper.exe
- cd PACKAGE
- del *.cpp,*.moc,*.h,*.obj,*.res,*.exp,*.lib,*.lik,*.pch
2018-11-08 21:08:33 +01:00
artifacts:
2019-12-05 15:53:47 +01:00
expire_in: '12 weeks'
2018-11-08 21:08:33 +01:00
paths:
2018-11-11 16:19:51 +01:00
- PACKAGE/