ci-windows-test.bat 1.18 KB
Newer Older
1
@echo off
2

3 4 5 6 7 8 9 10 11 12 13
::########################################
::# Fetch test data
::########################################
rmdir /Q /S TestData
:: clone libraries git (set env variable to GIT_SSH_COMMAND maybe use setx once as this key won't change) 
set GIT_SSH_COMMAND=ssh -i E:\\\gitlab\\\id_rsa 
git clone git@roosevelt.informatik.rwth-aachen.de:moebius/OpenFlipper-Test-Data.git TestData

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

14
echo %Time%: Entering rel directory ...
15 16 17
::enter build directory
cd rel

18
echo %Time%: Removing CMakeCache ...
19 20 21
::delete cmake cache
del /s /q CMakeCache.txt

22
echo %Time%: Removing CTestFile ...
23
del /q CTestTestfile.cmake
24
echo %Time%: Removing DartConfiguration ...
25 26
del /q DartConfiguration.tcl

27
echo %Time%: running cmake ...
28
::invoke cmake to fix paths
Jan Möbius's avatar
Jan Möbius committed
29
"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% ..
30 31 32 33 34 35 36 37 38

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

::run tests
cd tests
copy ..\Build\Qt*.dll testBinaries
copy ..\Build\icu*.dll testBinaries
run_tests.bat

Jan Möbius's avatar
Jan Möbius committed
39
IF %errorlevel% NEQ 0 exit /b %errorlevel%