Move AppVeyor test code to script.

This commit is contained in:
Joachim Bauch
2016-09-19 21:38:19 +02:00
parent c4074afd3e
commit 164b21ac07
2 changed files with 41 additions and 16 deletions
+5 -16
View File
@@ -31,20 +31,9 @@ platform:
configuration:
- Debug
build:
verbosity: normal
install:
- call scripts\run-appveyor.bat
build_script:
- ps: if($env:PLATFORM -eq "x64") { $env:CMAKE_GEN_SUFFIX=" Win64" }
- cmake "-G%GENERATOR%%CMAKE_GEN_SUFFIX%" -H. -Bbuild
- cmake --build build --config %CONFIGURATION%
before_test:
- copy /y build\example\DllLoader\%CONFIGURATION%\DllLoader.exe build\example\DllLoader\
- copy /y build\example\DllLoader\%CONFIGURATION%\DllLoaderLoader.exe build\example\DllLoader\
- copy /y build\example\SampleDLL\%CONFIGURATION%\SampleDLL.dll build\example\SampleDLL\
test_script:
- cd build\example\DllLoader
- DllLoader.exe
- DllLoaderLoader.exe
build: off
test: off
deploy: off
+36
View File
@@ -0,0 +1,36 @@
@echo off
setlocal
if /I "%PLATFORM" == "x64" (
set CMAKE_GEN_SUFFIX= Win64
) else (
set CMAKE_GEN_SUFFIX=
)
echo.
echo Preparing %CONFIGURATION% build environment for %GENERATOR%%CMAKE_GEN_SUFFIX% ...
cmake "-G%GENERATOR%%CMAKE_GEN_SUFFIX%" -H. -Bbuild
if %errorlevel% neq 0 exit /b %errorlevel%
echo.
echo Building ...
cmake --build build --config %CONFIGURATION%
if %errorlevel% neq 0 exit /b %errorlevel%
echo.
echo Copying generated files ...
copy /y build\example\DllLoader\%CONFIGURATION%\DllLoader.exe build\example\DllLoader\ > NUL
copy /y build\example\DllLoader\%CONFIGURATION%\DllLoaderLoader.exe build\example\DllLoader\ > NUL
copy /y build\example\SampleDLL\%CONFIGURATION%\SampleDLL.dll build\example\SampleDLL\ > NUL
cd build\example\DllLoader
echo.
echo Running DllLoader.exe ...
DllLoader.exe
if %errorlevel% neq 0 exit /b %errorlevel%
echo.
echo Running DllLoaderLoader.exe ...
DllLoaderLoader.exe
if %errorlevel% neq 0 exit /b %errorlevel%