-
Notifications
You must be signed in to change notification settings - Fork 83
/
.appveyor.yml
42 lines (33 loc) · 1.13 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
platform:
- x86
- x64
init:
- ps: |
If ($env:platform -Match "x86") {
$env:CMAKE_GEN_PLAT="Win32"
$env:PYTHON_ROOT="C:\Python27"
$env:Boost_ROOT="C:\Libraries\boost_1_69_0"
} Else {
$env:CMAKE_GEN_PLAT="x64"
$env:PYTHON_ROOT="C:\Python27-x64"
$env:Boost_ROOT="C:\Libraries\boost_1_69_0"
}
- cmd: C:/"Program Files (x86)"/"Microsoft Visual Studio 12.0"/VC/vcvarsall.bat
install:
#- choco upgrade cmake
#- set path=C:\Program Files\CMake\bin;%path%
before_build:
- del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
build_script:
- md build
- cd build
- cmake .. -DCMAKE_GENERATOR_PLATFORM="%CMAKE_GEN_PLAT%"
- cmake --build . --config Debug
- cmake --build . --config Release
- ctest -C Debug --output-on-failure
- ctest -C Release --output-on-failure
- cmake --build . --target install
- cmake .. -DCMAKE_GENERATOR_PLATFORM="%CMAKE_GEN_PLAT%" -DENABLE_SERIALISATION=1
- cmake --build . --config Debug
- cmake --build . --config Release
- cmake --build . --target install