-
Notifications
You must be signed in to change notification settings - Fork 7
/
appveyor.yml
126 lines (113 loc) · 5.25 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#---------------------------------#
# general configuration #
#---------------------------------#
#
#---------------------------------#
# environment configuration #
#---------------------------------#
# Operating system (build VM template)
os: Visual Studio 2015
# environment variables
environment:
QT5_DIR: C:\Qt\5.7\msvc2015_64
#
KIT_ROOT: C:\local_vs2015_64
#
matrix:
- B_USE_GTKMM2: ON
B_USE_GTKMM3D: OFF
B_USE_GTKMM3R: OFF
B_USE_QT4: ON
B_USE_QT5: OFF
- B_USE_GTKMM2: OFF
B_USE_GTKMM3D: OFF
B_USE_GTKMM3R: ON
B_USE_QT4: OFF
B_USE_QT5: ON
- B_USE_GTKMM2: OFF
B_USE_GTKMM3D: ON
B_USE_GTKMM3R: OFF
B_USE_QT4: OFF
B_USE_QT5: OFF
# this is how to allow failing jobs in the matrix
matrix:
fast_finish: true # set this flag to immediately finish build once one of the jobs fails
# allow_failures:
# build cache to preserve files/folders between builds
#cache:
# - %KIT_ROOT% # don't work !?
# - C:\local_vs2015_64 # cached folder size cannot exceed 500 MB, so OFF for the moment...
# scripts that are called at very beginning, before repo cloning
init:
# - set
# - msbuild /version
# - cmake --version
# - dir C:\Libraries
# - dir C:\Libraries\boost_1_59_0
# - dir C:\Qt
# - dir C:\Qt\5.7
- C:\Qt\5.7\msvc2015_64\bin\qmake --version
- set PATH=%KIT_ROOT%\gettext;%KIT_ROOT%\libiconv-1.14\lib;%KIT_ROOT%\3rdparty\libpng\lib\Release;%KIT_ROOT%\3rdparty\zlib\lib\Release;%KIT_ROOT%\libzip-1.1.2\lib\Release;%KIT_ROOT%\libharu-2.3.0\lib\Release;%KIT_ROOT%\Qt\qt-4.8.7-x64-msvc2015\bin;%QT5_DIR%\bin;%KIT_ROOT%\opencv-3.1.0\build\x64\vc14\bin;%PATH%
- if %B_USE_GTKMM2%==TRUE set PATH=%KIT_ROOT%\gtkmm2\bin;%PATH%
- if %B_USE_GTKMM3D%==TRUE set PATH=%KIT_ROOT%\gtkmm3_debug\bin;%PATH%
- if %B_USE_GTKMM3R%==TRUE set PATH=%KIT_ROOT%\gtkmm3_release\bin;%PATH%
- set APPVEYOR=TRUE
- set CACHE=FALSE
#---------------------------------#
# build configuration #
#---------------------------------#
# build Configuration, i.e. Debug, Release, etc
configuration:
- Release
- Debug
# MSBuild verbosity level
# verbosity: quiet|minimal|normal|detailed
# scripts to run before build
before_build:
- IF EXIST %KIT_ROOT% SET CACHE=TRUE
#
- echo %CACHE%
- IF %CACHE%==FALSE echo CACHE_IS_FALSE
- IF %CACHE%==TRUE echo CACHE_IS_TRUE
#
- IF %CACHE%==FALSE mkdir %KIT_ROOT%
- IF %CACHE%==FALSE cd %KIT_ROOT%
# libiconv
- IF %CACHE%==FALSE curl -k --connect-timeout 60 --max-time 1200 -s -O https://download.gforge.liris.cnrs.fr/meppbin/windows/vs2015/PLEIAD/packages/clean/libiconv-1.14.rar
- IF %CACHE%==FALSE 7z x libiconv-1.14.rar > nul
# 3rdparty
- IF %CACHE%==FALSE curl -k --connect-timeout 60 --max-time 1200 -s -O https://download.gforge.liris.cnrs.fr/meppbin/windows/vs2015/PLEIAD/packages/clean/3rdparty.rar
- IF %CACHE%==FALSE 7z x 3rdparty.rar > nul
# zip
- IF %CACHE%==FALSE curl -k --connect-timeout 60 --max-time 1200 -s -O https://download.gforge.liris.cnrs.fr/meppbin/windows/vs2015/PLEIAD/packages/clean/libzip-1.1.2.rar
- IF %CACHE%==FALSE 7z x libzip-1.1.2.rar > nul
# haru(pdf)
- IF %CACHE%==FALSE curl -k --connect-timeout 60 --max-time 1200 -s -O https://download.gforge.liris.cnrs.fr/meppbin/windows/vs2015/PLEIAD/packages/clean/libharu-2.3.0.rar
- IF %CACHE%==FALSE 7z x libharu-2.3.0.rar > nul
# bin_gettext
- IF %CACHE%==FALSE curl -k --connect-timeout 60 --max-time 1200 -s -O https://download.gforge.liris.cnrs.fr/meppbin/windows/vs2015/PLEIAD/packages/clean/bin_gettext.rar
- IF %CACHE%==FALSE 7z x bin_gettext.rar > nul
# gtkmm2
- IF %CACHE%==FALSE curl -k --connect-timeout 60 --max-time 1200 -s -O https://download.gforge.liris.cnrs.fr/meppbin/windows/vs2015/PLEIAD/packages/clean/gtkmm2.7z
- IF %CACHE%==FALSE 7z x gtkmm2.7z > nul
# gtkmm3_debug
- IF %CACHE%==FALSE curl -k --connect-timeout 60 --max-time 1200 -s -O https://download.gforge.liris.cnrs.fr/meppbin/windows/vs2015/PLEIAD/packages/clean/gtkmm3_debug.7z
- IF %CACHE%==FALSE 7z x gtkmm3_debug.7z > nul
# gtkmm3_release
- IF %CACHE%==FALSE curl -k --connect-timeout 60 --max-time 1200 -s -O https://download.gforge.liris.cnrs.fr/meppbin/windows/vs2015/PLEIAD/packages/clean/gtkmm3_release.7z
- IF %CACHE%==FALSE 7z x gtkmm3_release.7z > nul
# Qt4
- IF %CACHE%==FALSE curl -k --connect-timeout 60 --max-time 1200 -s -O https://download.gforge.liris.cnrs.fr/meppbin/windows/vs2015/MEPP/packages/clean/qt-4.8.7-x64-msvc2015.7z
- IF %CACHE%==FALSE 7z x qt-4.8.7-x64-msvc2015.7z > nul
# OpenCV
- IF %CACHE%==FALSE curl -k --connect-timeout 60 --max-time 1200 -s -O https://download.gforge.liris.cnrs.fr/meppbin/windows/vs2015/PLEIAD/packages/clean/opencv-3.1.0.7z
- IF %CACHE%==FALSE 7z x opencv-3.1.0.7z > nul
#
- cd %APPVEYOR_BUILD_FOLDER%
- cmake . -G"Visual Studio 14 2015 Win64" -DMSVC_KIT_ROOT=%KIT_ROOT% -DCRN_DEPENDENCY_PNG=OFF -DCRN_DEPENDENCY_GTKMM2=%B_USE_GTKMM2% -DCRN_DEPENDENCY_GTKMM3_DEBUG=%B_USE_GTKMM3D% -DCRN_DEPENDENCY_GTKMM3_RELEASE=%B_USE_GTKMM3R% -DCRN_DEPENDENCY_ZIP=ON -DCRN_DEPENDENCY_HARUPDF=ON -DCRN_DEPENDENCY_QT4=%B_USE_QT4% -DCRN_DEPENDENCY_QT5=%B_USE_QT5%
# to run your custom scripts instead of automatic MSBuild
build_script:
- msbuild /m libcrn.sln
# to run your custom scripts instead of automatic tests
test_script:
- ctest -C %CONFIGURATION%