-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathappveyor.yml
83 lines (66 loc) · 3.36 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
# Specify version format
version: "3.4.1-{build}"
os: Visual Studio 2015
# to add several platforms to build matrix
platform:
- x64
configuration:
- Release
environment:
matrix:
- CMAKE_GENERATOR: MinGW Makefiles
BUILD_NAME: mingw
- CMAKE_GENERATOR: Visual Studio 14 2015 Win64
BUILD_NAME: vs2015
# Scripts that are called at very beginning, before repo cloning
init:
- cmake --version
- msbuild /version
install:
# Create temp dir to collect test outputs
- md C:\temp
# All external dependencies are installed in C:\projects\deps
- mkdir C:\projects\deps
- cd C:\projects\deps
# visp-images
- git clone --depth 1 https://github.com/lagadic/ViSP-images C:\projects\deps\ViSP-images
- set VISP_INPUT_IMAGE_PATH=C:\projects\deps
# ustk-dataset
- git clone --depth 1 https://github.com/lagadic/ustk-dataset C:\projects\deps\ustk-dataset
- set USTK_DATASET_PATH=C:\projects\deps\ustk-dataset
# visp
#- git clone https://github.com/lagadic/visp C:\projects\visp\visp
- git clone --branch feat_update_various https://github.com/fspindle/visp C:\projects\visp\visp
- set VISP_SRC_DIR=C:\projects\visp\visp
# ustk clone directory
clone_folder: C:\projects\ustk\ustk
before_build:
# Setup path for mingw
# Use MinGW-w64 in C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin
- if "%CMAKE_GENERATOR%"=="MinGW Makefiles" set MINGW_DIR=C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64
# Workaround for CMake not wanting sh.exe on PATH for MinGW
- if "%CMAKE_GENERATOR%"=="MinGW Makefiles" set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
- if "%CMAKE_GENERATOR%"=="MinGW Makefiles" set PATH=C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;%PATH%
- if "%CMAKE_GENERATOR%"=="MinGW Makefiles" dir C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin
- if "%CMAKE_GENERATOR%"=="MinGW Makefiles" mingw32-make --version
# Setup ViSP
- if "%CMAKE_GENERATOR%"=="Visual Studio 14 2015 Win64" set VISP_DLL_DIR=C:\projects\visp\build\install\%platform%\vc14\bin
- if "%CMAKE_GENERATOR%"=="MinGW Makefiles" set VISP_DLL_DIR=C:\projects\visp\build\install\%platform%\mingw\bin
- set PATH=%VISP_DLL_DIR%;%PATH%
# Issue with pthreads threading on MinGW AppVeyor
- if "%CMAKE_GENERATOR%"=="MinGW Makefiles" set APPVEYOR_THREADING=false
build_script:
- echo %PATH%
- echo %APPVEYOR_PROJECT_ID%
- dir C:\projects\deps
- dir C:\tools
- md C:\projects\visp\build
- cd C:\projects\visp\build
- cmake -G "%CMAKE_GENERATOR%" -DCMAKE_BUILD_TYPE=%configuration% -DVISP_CONTRIB_MODULES_PATH=..\..\ustk\ustk -DBUILD_MODULE_visp_ar=OFF -DBUILD_MODULE_visp_blob=OFF -DBUILD_MODULE_visp_detection=OFF -DBUILD_MODULE_visp_klt=OFF -DBUILD_MODULE_visp_mbt=OFF -DBUILD_MODULE_visp_me=OFF -DBUILD_MODULE_visp_tt=OFF -DBUILD_MODULE_visp_tt_mi=OFF -DBUILD_MODULE_visp_vision=OFF -DBUILD_MODULE_visp_visual_features=OFF -DBUILD_MODULE_visp_vs=OFF ..\visp
- if "%CMAKE_GENERATOR%"=="Visual Studio 14 2015 Win64" cmake --build . --config %configuration% --target install -- /m:2
- if "%CMAKE_GENERATOR%"=="MinGW Makefiles" cmake --build . --config %configuration% --target install -- -j2
- dir C:\projects\visp\build\install
- dir %VISP_DLL_DIR%
- if "%CMAKE_GENERATOR%"=="Visual Studio 14 2015 Win64" ctest
# Issue with exception on MinGW AppVeyor
- if "%CMAKE_GENERATOR%"=="MinGW Makefiles" ctest -E testMatrixException