forked from boostorg/nowide
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
53 lines (44 loc) · 1.2 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: 1.0.0.{build}
branches:
only:
- master
- develop
image:
- Visual Studio 2015
- Visual Studio 2017
configuration:
- Debug
platform:
- Win32
- x64
environment:
BOOST_ROOT: C:\Libraries\boost_1_65_1
GENERATOR: Visual Studio 14 2015
matrix:
fast_finish: true
for:
- matrix:
only:
- image: Visual Studio 2017
environment:
BOOST_ROOT: C:\Libraries\boost_1_67_0
GENERATOR: Visual Studio 15 2017
before_build:
- if exist build\ (rmdir /S /Q build)
- set "INSTALL_DIR=%APPVEYOR_BUILD_FOLDER%\installed"
- if exist %INSTALL_DIR%\ (rmdir /S /Q %INSTALL_DIR%)
- mkdir build
- cd build
- if %platform% == x64 (set "GENERATOR=%GENERATOR% Win64")
- cmake -G "%GENERATOR%" -DCMAKE_INSTALL_PREFIX=%INSTALL_DIR% ..
build:
project: build/nowide.sln
parallel: true
test_script:
- ctest --output-on-failure -C %configuration% --parallel 4
# Build consumer example test
- cmake --build . --config %configuration% --target install
- del /F /S /Q *
- cmake ../test/exampleProject -G "%GENERATOR%" -DCMAKE_PREFIX_PATH=%APPVEYOR_BUILD_FOLDER%\installed
- cmake --build . --config %configuration%
- ctest --output-on-failure -C %configuration% --parallel 4