-
Notifications
You must be signed in to change notification settings - Fork 19
/
appveyor.yml
75 lines (61 loc) · 2.21 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 1.0.{build}
branches:
only:
- develop
- test_attributes
skip_commits:
message: /\[skip ci\]|\[ci skip\]|\[skip appveyor\]|\[ci appveyor\]/
files:
- .travis*
- data/
- '*.md'
clone_folder: c:\projects\myproject
# fetch repository as zip archive
shallow_clone: true
image:
- Visual Studio 2015
- Visual Studio 2017
configuration:
- Release
- Debug
environment:
CMAKE_TOOLCHAIN_FILE: -DCMAKE_TOOLCHAIN_FILE="C:\tools\vcpkg\scripts\buildsystems\vcpkg.cmake"
matrix:
- arch: x64
build:
parallel: true
verbosity: minimal
# skip unsupported combinations
init:
- echo %arch%
- echo %APPVEYOR_BUILD_WORKER_IMAGE%
- if "%arch%"=="x64" (set TARGET_PLATFORM= Win64)
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (set GENERATOR="Visual Studio 15 2017%TARGET_PLATFORM%" && set QT_DIR="C:\Qt\5.10.1\msvc2017_64\lib\cmake\Qt5")
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (set GENERATOR="Visual Studio 14 2015%TARGET_PLATFORM%" && set QT_DIR="C:\Qt\5.10.1\msvc2015_64\lib\cmake\Qt5")
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" (set GENERATOR="Visual Studio 12 2013%TARGET_PLATFORM%" && set QT_DIR="C:\Qt\5.8\msvc2013_64\lib\cmake\Qt5")
- echo %GENERATOR%
- echo %QT_DIR%
cache: c:\tools\vcpkg\installed\
install:
- vcpkg remove --outdated --recurse
- vcpkg install --recurse
zlib
eigen3
tinyxml2
--triplet %arch%-windows
matrix:
allow_failures:
- image: Visual Studio 2015
build_script:
- md build
- cd build
- cmake --version
- cmake -Wno-dev -Wno-deprecated -G %GENERATOR% .. -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY:BOOL=ON -DCMAKE_SUPPRESS_REGENERATION=1 %CMAKE_TOOLCHAIN_FILE% -DQt5_DIR=%QT_DIR% -DCGOGN_BUILD_TESTS=ON -DCGOGN_BUILD_EXAMPLES=ON
- cmake --build . --config "%CONFIGURATION%" -- /verbosity:minimal
- cmake --build . --config "%CONFIGURATION%" --target RUN_TESTS -- /verbosity:minimal
- cmake --build . --config "%CONFIGURATION%" --target INSTALL -- /verbosity:minimal
- cmake --build . --config "%CONFIGURATION%" --target UNINSTALL -- /verbosity:minimal