forked from MEPP-team/MEPP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
101 lines (89 loc) · 3.91 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
#---------------------------------#
# general configuration #
#---------------------------------#
#
#---------------------------------#
# environment configuration #
#---------------------------------#
# Operating system (build VM template)
os: Visual Studio 2015
# environment variables
environment:
BOOST_ROOT: C:\Libraries\boost_1_60_0
#
QT5_DIR: C:\Qt\5.6\msvc2015_64
#
KIT_ROOT: C:\\local_vs2015_64 # why \\ for Qt4 ? !
#
matrix:
- B_USE_QT5: OFF # so we use Qt4 here for UI
- B_USE_QT5: ON
# 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:\Qt
- C:\Qt\5.6\msvc2015_64\bin\qmake --version
- set APPVEYOR=TRUE
- set CACHE=FALSE
- set APPVEYOR_BUILD_WORKER_CLOUD=pro-lw # switch to "LiquidWeb Central US" (Michigan) instead of "Rackspace San Antonio" (Texas) AppVeyor datacenter/servers -> solution for curl errors 28 and 56
#---------------------------------#
# 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 %CACHE%==FALSE rmdir /s %KIT_ROOT% /Q # uncomment only once if new library
- 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%
# boost
- ren C:\Libraries\boost_1_60_0\lib64-msvc-14.0 lib
# CGAL
- 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/CGAL-4.9.7z
- IF %CACHE%==FALSE 7z x CGAL-4.9.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
# libQGLViewer (for Qt 4.8.7)
- 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/libQGLViewer-2.6.3-qt-4.8.7.rar
- IF %CACHE%==FALSE 7z x libQGLViewer-2.6.3-qt-4.8.7.rar > nul
# libQGLViewer (for Qt 5.6.0)
- 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/libQGLViewer-2.6.3-qt-5.6.0.rar
- IF %CACHE%==FALSE 7z x libQGLViewer-2.6.3-qt-5.6.0.rar > nul
# xerces-c
- IF %CACHE%==FALSE curl -k --connect-timeout 60 --max-time 1200 -s -O https://download.gforge.liris.cnrs.fr/meppbin/windows/vs2015/MEPP/packages/redo/xerces-c-3.1.2.rar
- IF %CACHE%==FALSE 7z x xerces-c-3.1.2.rar > nul
# assimp
- IF %CACHE%==FALSE curl -k --connect-timeout 60 --max-time 1200 -s -O https://download.gforge.liris.cnrs.fr/meppbin/windows/vs2015/MEPP/packages/redo/assimp-3.2.rar
- IF %CACHE%==FALSE 7z x assimp-3.2.rar > nul
# ffmpeg
- 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/contrib.rar
- IF %CACHE%==FALSE 7z x contrib.rar > nul
#
- cd %APPVEYOR_BUILD_FOLDER%
- cmake . -G"Visual Studio 14 2015 Win64" -DMSVC_KIT_ROOT=%KIT_ROOT% -DWITH_QT5=%B_USE_QT5%
# to run your custom scripts instead of automatic MSBuild
build_script:
- msbuild /m MEPP.sln
# - msbuild MEPP.sln # /m IS responsible for random crashes of Qt MOC !!!