-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
.appveyor.yml
49 lines (39 loc) · 1.17 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
max_jobs: 8
image:
- Visual Studio 2015
# - Visual Studio 2017
configuration:
- Release
# - Debug
platform:
- x64
environment:
matrix:
- arch: Win64
matrix:
allow_failures:
- platform: x64
configuration: Debug
init:
- set arch=
- if "%arch%"=="Win64" ( set arch= Win64)
- echo %arch%
- echo %APPVEYOR_BUILD_WORKER_IMAGE%
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( set generator="Visual Studio 15 2017%arch%" )
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" ( set generator="Visual Studio 14 2015%arch%" )
before_build:
- cmd: |-
cd cpp\perspective
mkdir build
cd build
cmake --version
cmake .. -G %generator% -DPSP_WASM_BUILD=0 -DPSP_CPP_BUILD=1 -DPSP_CPP_BUILD_TESTS=1 -DPSP_CPP_BUILD_STRICT=1 -DBOOST_ROOT=C:\Libraries\boost_1_67_0 -DBoost_INCLUDE_DIRS=C:\Libraries\boost_1_67_0
build_script:
- msbuild psp.sln /p:Platform=x64 /m /p:Configuration=%CONFIGURATION%
- cp %CONFIGURATION%\psp.dll test\%CONFIGURATION%
- cp tbb-build\%CONFIGURATION%\tbb.dll test\%CONFIGURATION%
- .\test\%CONFIGURATION%\psp_test.exe
# to disable automatic tests
test: off
# to disable deployment
deploy: off