Added AppVeyor CI integration.

This commit is contained in:
Joachim Bauch
2015-08-22 01:03:50 +02:00
parent 8c3d253325
commit a13ad18e11
2 changed files with 49 additions and 1 deletions
+5 -1
View File
@@ -25,7 +25,11 @@ if (NOT MSVC)
set (CMAKE_RC_COMPILE_OBJECT "${CMAKE_RC_COMPILER} -O coff -I${CMAKE_CURRENT_SOURCE_DIR} <SOURCE> <OBJECT>")
endif ()
add_definitions ("-Wall")
if (NOT MSVC)
add_definitions ("-Wall")
else ()
add_definitions ("-W4")
endif ()
option(UNICODE "Compile with UNICODE support" OFF)
if (UNICODE)
+44
View File
@@ -0,0 +1,44 @@
version: #{build}
os:
- Windows Server 2012 R2
environment:
matrix:
- GENERATOR: "Visual Studio 10 2010"
UNICODE: ON
- GENERATOR: "Visual Studio 10 2010"
UNICODE: OFF
- GENERATOR: "Visual Studio 11 2012"
UNICODE: ON
- GENERATOR: "Visual Studio 11 2012"
UNICODE: OFF
- GENERATOR: "Visual Studio 12 2013"
UNICODE: ON
- GENERATOR: "Visual Studio 12 2013"
UNICODE: OFF
platform:
- x86
- x64
configuration:
- Debug
build:
verbosity: normal
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