-
Notifications
You must be signed in to change notification settings - Fork 216
/
appveyor.yml
81 lines (64 loc) · 2.47 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
# Specify version format
version: "{build}"
# Operating system (build VM template)
os: Visual Studio 2015
# build platform, i.e. Win32 (instead of x86), x64, Any CPU. This setting is optional.
platform:
- x64
# Do not build feature branch with open Pull Request
skip_branch_with_pr: true
skip_commits:
files:
.travis.yml
.gitignore
# specify custom environment variables
environment:
MSVC_DEFAULT_OPTIONS: ON
SUPER4PCS_REPOSITORY_ROOT: C:\projects\Super4PCS
SUPER4PCS_BUILD_DIR: C:\projects\Super4PCS\build
SUPER4PCS_RELEASE_DIR: C:\projects\Super4PCS\Super4PCS-%platform%-%configuration%
SUPER4PCS_RELEASE_NAME: Super4PCS-%platform%-%configuration%
# 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
# clone directory
clone_folder: C:\projects\Super4PCS
# branches to build
branches:
# whitelist
# only:
# - master
# blacklist
except:
- gh-pages
# scripts that run after cloning repository
install:
# scripts to run before build
before_build:
- cmd: md %SUPER4PCS_BUILD_DIR%
- cmd: cd %SUPER4PCS_BUILD_DIR%
- cmd: if "%platform%"=="Win32" set CMAKE_GENERATOR_NAME=Visual Studio 14 2015
- cmd: if "%platform%"=="x64" set CMAKE_GENERATOR_NAME=Visual Studio 14 2015 Win64
- cmd: cmake -G "%CMAKE_GENERATOR_NAME%" -DCMAKE_BUILD_TYPE=%configuration% -DSUPER4PCS_COMPILE_TESTS=TRUE -DIO_USE_OPENCV=FALSE -DENABLE_TIMING=FALSE -DSUPER4PCS_USE_CHEALPIX=FALSE -DDL_DATASETS=FALSE -DCMAKE_INSTALL_PREFIX=%SUPER4PCS_RELEASE_DIR% ..
- cmd: dir .
build:
project: C:\projects\Super4PCS\build\INSTALL.vcxproj # path to Visual Studio solution or project
parallel: true # enable MSBuild parallel builds
verbosity: quiet # MSBuild verbosity level (quiet|minimal|normal|detailed)
after_build:
- cmd: cd %SUPER4PCS_REPOSITORY_ROOT%
- cmd: dir %SUPER4PCS_RELEASE_DIR%
artifacts:
- path: Super4PCS-%platform%-%configuration% # use relative path
name: Super4PCS-%platform%-%configuration%
type: zip
test: on
test_script:
- cmd: if "%configuration%"=="Release" msbuild %SUPER4PCS_BUILD_DIR%\buildtests.vcxproj /m /p:Configuration=%configuration%
- cmd: if "%configuration%"=="Release" msbuild %SUPER4PCS_BUILD_DIR%\RUN_TESTS.vcxproj /m /p:Configuration=%configuration%
# - cmd: ctest --build-config %configuration% --parallel 4 --output-on-failure