forked from cdcseacave/openMVS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
102 lines (84 loc) · 2.96 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
# Specify version format
version: "{build}"
image:
- Visual Studio 2017
- Ubuntu
platform:
- x64
# specify custom environment variables
environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: true
# build configuration, i.e. Debug, Release, etc.
configuration:
- Debug
- Release
# scripts that are called at very beginning, before repo cloning
init:
- cmd: cmake --version
- cmd: msbuild /version
# branches to build
branches:
# blacklist
except:
- gh-pages
# scripts that run after cloning repository
install:
#------------------
# Windows 10
#------------------
# update vcpkg
- cmd: cd C:\tools\vcpkg
- cmd: git pull
- cmd: .\bootstrap-vcpkg.bat
- cmd: if "%platform%"=="Win32" set VCPKG_ARCH=x86-windows
- cmd: if "%platform%"=="x64" set VCPKG_ARCH=x64-windows
# remove outdated versions
- cmd: vcpkg remove --outdated --recurse
# install required dependencies
- cmd: vcpkg install --recurse --triplet %VCPKG_ARCH% zlib boost-iostreams boost-program-options boost-system boost-serialization eigen3 cgal[core] ceres opencv
# install optional dependencies
- cmd: vcpkg install --recurse --triplet %VCPKG_ARCH% glew glfw3
- cmd: vcpkg integrate install
- cmd: cd "%APPVEYOR_BUILD_FOLDER%"
#------------------
# Ubuntu 16.04 LTS
#------------------
- sh: sudo apt-get update -qq && sudo apt-get install -qq
- sh: sudo apt-get -y install build-essential git mercurial cmake libpng-dev libjpeg-dev libtiff-dev libglu1-mesa-dev
- sh: sudo apt-get -y install libboost-iostreams-dev libboost-program-options-dev libboost-system-dev libboost-serialization-dev
- sh: sudo apt-get -y install libeigen3-dev libopencv-dev libcgal-dev libcgal-qt5-dev libatlas-base-dev libsuitesparse-dev libceres-dev
- sh: sudo apt-get -y install freeglut3-dev libglew-dev libglfw3-dev
# preserve contents of selected directories and files across project builds
for:
-
matrix:
only:
- image: Visual Studio 2017
cache:
- 'C:\tools\vcpkg\installed'
-
matrix:
only:
- image: Ubuntu
cache:
- '/usr/lib/x86_64-linux-gnu/'
build_script:
# get VCG library
- git clone https://github.com/cdcseacave/VCG.git
#------------------
# Windows 10
#------------------
- cmd: if "%platform%"=="Win32" set CMAKE_GENERATOR=-G"Visual Studio 15 2017"
- cmd: if "%platform%"=="x64" set CMAKE_GENERATOR=-G"Visual Studio 15 2017 Win64"
- cmd: mkdir bin && cd bin
- cmd: cmake %CMAKE_GENERATOR% -DCMAKE_BUILD_TYPE=%Configuration% -DCMAKE_TOOLCHAIN_FILE="C:\tools\vcpkg\scripts\buildsystems\vcpkg.cmake" -DVCG_ROOT="%APPVEYOR_BUILD_FOLDER%\VCG" ..
- cmd: cmake --build . --target ALL_BUILD --config %Configuration% -- /maxcpucount:4
#------------------
# Ubuntu 16.04 LTS
#------------------
- sh: mkdir bin && cd bin
- sh: cmake -DCMAKE_BUILD_TYPE=$Configuration -DVCG_ROOT="$APPVEYOR_BUILD_FOLDER/VCG" ..
- sh: make -j4
test_script:
#- cmd: ctest --build-config %Configuration% --parallel 4 --output-on-failure
#- sh: ctest -j4