forked from ihhub/penguinV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
66 lines (58 loc) · 1.86 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
skip_commits:
files:
- .travis.yml
- '**/*.md'
- .gitignore
- LICENSE
# version format
version: 1.0.{build}
# Build worker image (VM template)
image: Visual Studio 2015
environment:
matrix:
- JOB: Release_x86
configuration: Release
platform: x86
- JOB: Release_x64
configuration: Release
platform: x64
- JOB: Python2.7
PYTHON: "C:\\Python27-x64"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- JOB: Python3.7
PYTHON: "C:\\Python37-x64"
for:
-
matrix:
only:
- JOB: Python2.7
- JOB: Python3.7
init:
- set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%
- python --version
install:
- if not exist C:\ProgramData\chocolatey\bin\swig.exe choco install swig --version 3.0.12 --yes --limit-output -dv
before_build:
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
build_script:
- cmd: cd C:\projects\penguinv\src\python
- cmd: python setup.py build_ext --inplace
test_script:
- cmd: cd C:\projects\penguinv\examples\python
- cmd: python bitmap_operation.py
# clone directory
clone_folder: C:\projects\penguinv
# scripts to run before build
before_build:
- cmd: if "%configuration%"=="Release" call script\appveyor\cuda_install.cmd
build_script:
- cmd: if "%APPVEYOR_SCHEDULED_BUILD%" == "True" set PENGUINV_UNIT_TEST_RUN_COUNT=500
- cmd: cd C:\projects\penguinv
- cmd: md build
- cmd: cd build
- cmd: if "%platform%"=="x64" cmake -G "Visual Studio 14 2015 Win64" ..
- cmd: if "%platform%"=="x86" cmake -G "Visual Studio 14 2015" ..
- cmd: cmake --build . --config %configuration%
test_script:
# OpenCL unit test is excluded as it fails with Exception: Exit code 0xc0000135 on Appveyor
- cmd: if "%configuration%"=="Release" ctest -C %configuration% -E "unit_tests_opencl|perf_test|performance_tests_opencl" --extra-verbose