-
Notifications
You must be signed in to change notification settings - Fork 5
/
appveyor.yml
86 lines (69 loc) · 2.85 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
76
77
78
79
80
81
82
83
84
85
86
version: 0.9beta.{build}
environment:
BOOST_ROOT: "C:\\Libraries\\boost_1_63_0"
matrix:
- VS_GEN: Visual Studio 14 2015
CONFIG: RelWithDebInfo
B_NAME: Win32
BOOST_LIBRARYDIR: "C:\\Libraries\\boost_1_63_0\\lib32-msvc-14.0"
CONFIGQGL: Release
QTDIR: "C:\\Qt\\5.6.3\\msvc2015"
# - VS_GEN: Visual Studio 14 2015 Win64
# CONFIG: Release
# B_NAME: Win64
# BOOST_LIBRARYDIR: "C:\\Libraries\\boost_1_59_0\\lib64-msvc-14.0"
matrix:
fast_finish: true
# Operating system (build VM template)
os: Visual Studio 2015
branches:
except:
- coverity_scan
skip_tags: true
#platform: ARM
# - x86
# - x64
# - ARM
# scripts that are called at very beginning, before repo cloning
init:
# Print environment info
- set
- msbuild /version
- cmake --version
- set PATH=%QTDIR%\bin;%PATH%
# check nmake ?
#- call "c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
#- cl
# scripts that run after cloning repository
install:
before_build:
# install zlib
- cmd: mkdir c:\zlib
- appveyor DownloadFile "https://github.com/madler/zlib/archive/v1.2.9.zip" -FileName zlib.zip
- 7z x zlib.zip -oC:\zlib
- cmd: cd C:\zlib
- cmd: mkdir C:\zlib-install
- cmd: mkdir C:\zlib-build
- cmd: cd C:\zlib-build
- cmd: dir C:\zlib
- cmake -G"%VS_GEN%" -DCMAKE_BUILD_TYPE=%CONFIG% -DCMAKE_INSTALL_PREFIX:PATH=c:\zlib-install C:\zlib\zlib-1.2.9
- msbuild zlib.sln /m
- cmd: msbuild INSTALL.vcxproj
- git clone https://github.com/kerautret/libQGLViewer.git C:\projects\libqglviewer
- cd C:\projects\libqglviewer\QGLViewer
- qmake -t vclib QGLViewer.pro -spec win32-msvc2013 -o qglviewer.vcxproj
- msbuild /m /p:Configuration=%CONFIGQGL% /p:Platform=%B_NAME% qglviewer.vcxproj
- git clone -q --branch=master https://github.com/DGtal-team/DGtal.git C:\projects\dgtal
- cd C:\projects\dgtal
- cmake -Wno-dev -G"%VS_GEN%" -DCMAKE_BUILD_TYPE=%CONFIG% -DWITH_QGLVIEWER:BOOL=ON -DWITH_QT5:BOOL=ON -DQGLVIEWER_INCLUDE_DIR=C:\projects\libqglviewer -DQGLVIEWER_LIBRARIES=C:\projects\libqglviewer\QGLViewer\QGLViewer2.lib -DBUILD_TESTING:BOOL=OFF -DBUILD_EXAMPLES:BOOL=OFF -DBUILD_SHARED_LIBS:BOOL=FALSE -DZLIB_LIBRARY=c:/zlib-install/lib/zlibd.lib -DZLIB_INCLUDE_DIR=c:/zlib-install/include/ -DBOOST_ROOT=%BOOST_ROOT% .
- msbuild /m /p:Configuration=%CONFIG% /p:Platform=%B_NAME% DGtal.sln
- cd %APPVEYOR_BUILD_FOLDER%
- cmake -Wno-dev -G"%VS_GEN%" -DCMAKE_BUILD_TYPE=%CONFIG% -DBOOST_ROOT=%BOOST_ROOT% -DBOOST_LIBRARYDIR="%BOOST_LIBRARYDIR%" -DDGtal_DIR=C:\projects\dgtal -DZLIB_LIBRARY=c:/zlib-install/lib/zlibd.lib -DZLIB_INCLUDE_DIR=c:/zlib-install/include/ .
build_script:
- echo %CONFIG%
- msbuild /m /p:Configuration=%CONFIG% /p:Platform=%B_NAME% CDCVAM.sln
# - ctest -D ExperimentalStart -C %CONFIG%
# - ctest -D ExperimentalBuild -j2 -C %CONFIG%
# - ctest -D ExperimentalTest -j2 -C %CONFIG%
test: off
deploy: off