Skip to content

Commit a13ad18

Browse files
committed
Added AppVeyor CI integration.
1 parent 8c3d253 commit a13ad18

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ if (NOT MSVC)
2525
set (CMAKE_RC_COMPILE_OBJECT "${CMAKE_RC_COMPILER} -O coff -I${CMAKE_CURRENT_SOURCE_DIR} <SOURCE> <OBJECT>")
2626
endif ()
2727

28-
add_definitions ("-Wall")
28+
if (NOT MSVC)
29+
add_definitions ("-Wall")
30+
else ()
31+
add_definitions ("-W4")
32+
endif ()
2933

3034
option(UNICODE "Compile with UNICODE support" OFF)
3135
if (UNICODE)

appveyor.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
version: #{build}
2+
3+
os:
4+
- Windows Server 2012 R2
5+
6+
environment:
7+
matrix:
8+
- GENERATOR: "Visual Studio 10 2010"
9+
UNICODE: ON
10+
- GENERATOR: "Visual Studio 10 2010"
11+
UNICODE: OFF
12+
- GENERATOR: "Visual Studio 11 2012"
13+
UNICODE: ON
14+
- GENERATOR: "Visual Studio 11 2012"
15+
UNICODE: OFF
16+
- GENERATOR: "Visual Studio 12 2013"
17+
UNICODE: ON
18+
- GENERATOR: "Visual Studio 12 2013"
19+
UNICODE: OFF
20+
21+
platform:
22+
- x86
23+
- x64
24+
25+
configuration:
26+
- Debug
27+
28+
build:
29+
verbosity: normal
30+
31+
build_script:
32+
- ps: if($env:PLATFORM -eq "x64") { $env:CMAKE_GEN_SUFFIX=" Win64" }
33+
- cmake "-G%GENERATOR%%CMAKE_GEN_SUFFIX%" -H. -Bbuild
34+
- cmake --build build --config %CONFIGURATION%
35+
36+
before_test:
37+
- copy /y build\example\DllLoader\%CONFIGURATION%\DllLoader.exe build\example\DllLoader\
38+
- copy /y build\example\DllLoader\%CONFIGURATION%\DllLoaderLoader.exe build\example\DllLoader\
39+
- copy /y build\example\SampleDLL\%CONFIGURATION%\SampleDLL.dll build\example\SampleDLL\
40+
41+
test_script:
42+
- cd build\example\DllLoader
43+
- DllLoader.exe
44+
- DllLoaderLoader.exe

0 commit comments

Comments
 (0)