1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-18 08:22:33 +02:00
ScreenPlay/.gitlab-ci.yml

50 lines
2.0 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()
2019-12-13 13:46:31 +01:00
- cmd /c " `"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat`" && set > `"$tempFile`" "
2019-12-05 15:53:47 +01:00
- 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-13 13:47:53 +01:00
- .\install-dependencies.bat
2019-12-05 15:53:47 +01:00
- 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/
build_docs:
2019-12-13 13:29:56 +01:00
stage: .post
script:
- curl --request POST --form "token=$CI_JOB_TOKEN" --form ref=master https://gitlab.com/api/v4/projects/15800262/trigger/pipeline