-
Notifications
You must be signed in to change notification settings - Fork 829
/
appveyor.yml
75 lines (66 loc) · 2.19 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
67
68
69
70
71
72
73
74
75
# appveyor file
# http://www.appveyor.com/docs/appveyor-yml
platform:
- x64
clone_folder: c:\projects\opencv4nodejs
init:
- git config --global core.autocrlf true
# cache:
# - c:\tools\opencv
# what combinations to test
environment:
OPENCV3_LATEST: 3.4.6
OPENCV4_LATEST: 4.1.0
PYTHON_VERSION: 2.7
PYTHON: "C:\\Python27-x64"
# use self build
OPENCV4NODEJS_DISABLE_AUTOBUILD: 1
matrix:
- nodejs_version: 12
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
OPENCV_VERSION: "%OPENCV4_LATEST%"
- nodejs_version: 12
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
OPENCV_VERSION: "%OPENCV3_LATEST%"
- nodejs_version: 12
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
OPENCV_VERSION: "%OPENCV4_LATEST%"
- nodejs_version: 11
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
OPENCV_VERSION: "%OPENCV4_LATEST%"
- nodejs_version: 10
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
OPENCV_VERSION: "%OPENCV4_LATEST%"
- nodejs_version: 8
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
OPENCV_VERSION: "%OPENCV4_LATEST%"
- nodejs_version: 6
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
OPENCV_VERSION: "%OPENCV4_LATEST%"
- nodejs_version: 12
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
OPENCV_VERSION: "%OPENCV4_LATEST%"
BUILD_TASK: "ENVS"
install:
- cmd: choco install OpenCV -y -version %OPENCV_VERSION%
- if not "%BUILD_TASK%" == "ENVS" SET OPENCV_INCLUDE_DIR=c:\tools\opencv\build\include
- if not "%BUILD_TASK%" == "ENVS" SET OPENCV_LIB_DIR=c:\tools\opencv\build\x64\vc14\lib
- if not "%BUILD_TASK%" == "ENVS" SET OPENCV_BIN_DIR=c:\tools\opencv\build\x64\vc14\bin
- if not "%BUILD_TASK%" == "ENVS" SET PATH=%PATH%;%OPENCV_BIN_DIR%;
- ps: Install-Product node $env:nodejs_version x64
- node --version
build: off
test_script:
- node --version
- if "%BUILD_TASK%" == "ENVS" (
cd c:\projects\opencv4nodejs\ci\envs &&
npm install &&
npm test
) else (
cd c:\projects\opencv4nodejs &&
npm install &&
cd c:\projects\opencv4nodejs\test &&
npm install &&
npm run test-appveyor &&
npm run test-externalMemTracking
)