Skip to content

Commit 7c074c0

Browse files
committed
Added AppVeyor config for CI on Windows
It uses Boost 1.59.0 from AppVeyor, OpenCV 2.4.12 and the newest Eigen, 3.3-beta1. Does a Release configuration build including the INSTALL target.
1 parent b0c6a7a commit 7c074c0

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

appveyor.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
environment:
2+
home: C:\projects
3+
cmake: C:\projects\cmake-3.4.1-win32-x86\bin\cmake.exe
4+
5+
version: '{branch}-{build}'
6+
7+
os: Visual Studio 2015
8+
9+
install:
10+
# Get the eos and superviseddescent submodules, since AppVeyor doesn't clone with '--recursive':
11+
- cmd: git submodule update --init --recursive # inside the repository directory
12+
# Get a recent CMake and our dependencies (Eigen, OpenCV, Boost):
13+
- cmd: cd %home%
14+
- ps: wget https://cmake.org/files/v3.4/cmake-3.4.1-win32-x86.zip -OutFile cmake.zip
15+
- cmd: 7z x cmake.zip -o"C:\projects" -y > nul # will extract to cmake-3.4.1-win32-x86\
16+
- cmd: '%cmake% --version'
17+
# Get Eigen:
18+
- ps: wget http://bitbucket.org/eigen/eigen/get/3.3-beta1.zip -OutFile eigen.zip
19+
- cmd: 7z x eigen.zip -o"C:\projects" -y > nul
20+
# Get OpenCV (my pre-built binaries for 2.4.12):
21+
- ps: wget "https://drive.google.com/uc?export=download&id=0B2FFdHlMfJl_cW9PeUplRVFtUWs" -OutFile opencv-2.4.12-github-vc14-release-travis.rar
22+
- cmd: 7z x opencv-2.4.12-github-vc14-release-travis.rar -o"C:\projects" -y > nul
23+
# Using Boost 1.59.0 from AppVeyor (C:\Libraries\boost_1_59_0)
24+
25+
before_build: # We're still in %home%
26+
- cmd: mkdir build
27+
- cmd: cd build
28+
- cmd: '%cmake% -G "Visual Studio 14 Win64" -DOpenCV_DIR=C:\projects\opencv -DOpenCV_haarcascades_DIR=C:/projects/opencv/share/OpenCV/haarcascades -DBOOST_ROOT=C:\Libraries\boost_1_59_0 -DBOOST_LIBRARYDIR=C:\Libraries\boost_1_59_0\lib64-msvc-14.0 -DEIGEN3_INCLUDE_DIR=C:\projects\eigen-eigen-ce5a455b34c0 -DCMAKE_INSTALL_PREFIX=..\install ..\4dface'
29+
30+
build:
31+
project: C:\projects\build\4dface.sln
32+
33+
after_build: # We're still in %home%\build
34+
- cmd: '%cmake% --build . --target INSTALL --config Release'
35+
36+
configuration:
37+
- Release

0 commit comments

Comments
 (0)