forked from Shark-ML/Shark
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
48 lines (40 loc) · 1.24 KB
/
appveyor.yml
File metadata and controls
48 lines (40 loc) · 1.24 KB
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
# specify platforms
platform:
- Win32
- x64
# configuration
configuration:
# - Debug
- Release
# set environment variables
environment:
BOOST_ROOT: C:\Libraries\boost
#OMP_NUM_THREADS: 2
# specify branch
branches:
only:
- master
# before everything
init:
- cmd: cmake --version
- cmd: msbuild /version
#- cmd: dir %BOOST_LIBRARYDIR%
# clone directory
clone_folder: C:\projects\shark
# scripts to run before build
before_build:
- cmd: cd C:\projects\shark
#- cmd: dir
- cmd: md build
- cmd: cd build
- cmd: if "%platform%"=="Win32" set CMAKE_GENERATOR_NAME=Visual Studio 12
- cmd: if "%platform%"=="x64" set CMAKE_GENERATOR_NAME=Visual Studio 12 Win64
- cmd: if "%platform%"=="Win32" set BOOST_LIBRARYDIR=%BOOST_ROOT%\lib32-msvc-12.0
- cmd: if "%platform%"=="x64" set BOOST_LIBRARYDIR=%BOOST_ROOT%\lib64-msvc-12.0
- 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%" ..
#- cmd: type C:\projects\shark\build\shark.sln
# actual build process
build:
project: C:\projects\shark\build\shark.sln
parallel: true
verbosity: minimal # compiler verbosity