ci-windows-deploy.bat 1.07 KB
Newer Older
1 2 3 4
@echo off
::########################################
::# Fetch test data
::########################################
5
::rmdir /Q /S TestData
6
:: clone libraries git (set env variable to GIT_SSH_COMMAND maybe use setx once as this key won't change) 
7 8
::set GIT_SSH_COMMAND=ssh -i E:\\\gitlab\\\id_rsa 
::git clone git@roosevelt.informatik.rwth-aachen.de:moebius/OpenFlipper-Test-Data.git TestData
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

::load configuration and settings
call %~dp0\ci-windows-config.bat

mkdir rel
cd rel

::remove executable again (no idea why was here already)
del *.exe

::delete cmake cache
del /s /q CMakeCache.txt

:: build installer package dlls and copy them to Openflipper dir

Jan Möbius's avatar
Jan Möbius committed
24
"C:\Program Files\CMake\bin\cmake.exe"  -DGTEST_PREFIX="%LIBPATH_BASE%\%ARCHITECTURE%\%GTESTVERSION%" -G "%GENERATOR%"  -DCMAKE_BUILD_TYPE=Release -DOPENFLIPPER_BUILD_UNIT_TESTS=TRUE %CMAKE_CONFIGURATION% ..
25 26 27 28 29

%VS_PATH% /Build "Release" OpenFlipper.sln /Project "PACKAGE"

IF %errorlevel% NEQ 0 exit /b %errorlevel%

Jan Möbius's avatar
Jan Möbius committed
30
move OpenFlipper-*.exe "OpenFlipper-Free-Git-Master-%CI_BUILD_REF%-%BUILD_PLATFORM%-%STRING_ARCH%-%QT_VERSION%.exe"