aboutsummaryrefslogtreecommitdiff
path: root/.appveyor.yml
diff options
context:
space:
mode:
Diffstat (limited to '.appveyor.yml')
-rw-r--r--.appveyor.yml74
1 files changed, 74 insertions, 0 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
new file mode 100644
index 0000000..d97a44e
--- /dev/null
+++ b/.appveyor.yml
@@ -0,0 +1,74 @@
1# Copyright (c) 2014, Ruslan Baratov
2# Copyright (c) 2014, 2016 Alexander Lamaison
3# Copyright (c) 2017 Silvio Traversaro
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are met:
8#
9# * Redistributions of source code must retain the above copyright notice, this
10# list of conditions and the following disclaimer.
11#
12# * Redistributions in binary form must reproduce the above copyright notice,
13# this list of conditions and the following disclaimer in the documentation
14# and/or other materials provided with the distribution.
15#
16# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
27os: Visual Studio 2015
28
29environment:
30 matrix:
31 - GENERATOR: "Visual Studio 14 2015"
32 BUILD_SHARED_LIBS: ON
33
34 - GENERATOR: "Visual Studio 14 2015"
35 BUILD_SHARED_LIBS: OFF
36
37 - GENERATOR: "Visual Studio 12 2013"
38 BUILD_SHARED_LIBS: ON
39
40 - GENERATOR: "Visual Studio 12 2013"
41 BUILD_SHARED_LIBS: OFF
42
43platform:
44 - x86
45 - x64
46
47configuration:
48 - Debug
49 - Release
50
51build_script:
52 - ps: if($env:PLATFORM -eq "x64") { $env:CMAKE_GEN_SUFFIX=" Win64" }
53 - md build
54 - cd build
55 - cmake "-G%GENERATOR%%CMAKE_GEN_SUFFIX%" -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS% -DBUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX="./install" ..
56 - cmake --build . --config "%CONFIGURATION%"
57
58test_script:
59 - ctest --output-on-failure --build-config "%CONFIGURATION%"
60
61after_test:
62 - cmake --build . --config "%CONFIGURATION%" --target INSTALL
63 # Test also the use of dlfcn-win32 from an external CMake project
64 # Append the instllation directory of dlfcn-win32 to CMAKE_PREFIX_PATH to make sure that the CMake project is found
65 - set CMAKE_PREFIX_PATH=%APPVEYOR_BUILD_FOLDER%/build/install
66 # Append the bin installation directory of dlfcn-win32 to the path to make sure that .dll are found
67 - set PATH=%PATH%;%APPVEYOR_BUILD_FOLDER%/build/install/bin
68 - cd ../cmake-test
69 - md build
70 - cd build
71 - cmake "-G%GENERATOR%%CMAKE_GEN_SUFFIX%" -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS% -DBUILD_TESTS=ON ..
72 - cmake --build . --config "%CONFIGURATION%"
73 - ctest --output-on-failure --build-config "%CONFIGURATION%"
74