forked from Shark-ML/Shark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
48 lines (40 loc) · 1.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
platform:
- Win32
- x64
configuration:
- Release
environment:
matrix:
#~ - cmake_generator_vs_name: "Visual Studio 12"
#~ msvc_name: msvc-12.0
#~ BOOST_ROOT: C:/Libraries/boost
- cmake_generator_vs_name: "Visual Studio 14"
msvc_name: msvc-14.0
BOOST_ROOT: C:/Libraries/boost_1_59_0
branches:
only:
- master
- msvc_linker_errors
# before everything
init:
- cmd: cmake --version
- cmd: msbuild /version
# clone directory
clone_folder: C:\projects\shark
# scripts to run before build
before_build:
- cmd: cd C:\projects\shark
- cmd: md build
- cmd: cd build
- cmd: if "%platform%"=="Win32" set CMAKE_GENERATOR_NAME=%cmake_generator_vs_name%
- cmd: if "%platform%"=="x64" set CMAKE_GENERATOR_NAME=%cmake_generator_vs_name% Win64
- cmd: if "%platform%"=="Win32" set BOOST_LIBRARYDIR=%BOOST_ROOT%\lib32-%msvc_name%
- cmd: if "%platform%"=="x64" set BOOST_LIBRARYDIR=%BOOST_ROOT%\lib64-%msvc_name%
- cmd: echo %CMAKE_GENERATOR_NAME%
- cmd: echo %BOOST_LIBRARYDIR%
- cmd: cmake -G "%CMAKE_GENERATOR_NAME%" -DCMAKE_BUILD_TYPE=%configuration% -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=OFF -DBOOST_ROOT="%BOOST_ROOT%" -DBOOST_LIBRARYDIR="%BOOST_LIBRARYDIR%" ..
# actual build process
build:
project: C:\projects\shark\build\shark.sln
parallel: true
verbosity: minimal # compiler verbosity