forked from UrielCh/opencv4nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
110 lines (97 loc) · 2.87 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# appveyor file
# http://www.appveyor.com/docs/appveyor-yml
platform:
- x64
clone_folder: c:\projects\opencv4nodejs
init:
- git config --global core.autocrlf true
shallow_clone: true
# cache:
# - c:\tools\opencv
# what combinations to test
environment:
OPENCV3_N0: 3.4.16 # 2021-10-11
#OPENCV4_N_0: 4.6.0 # 2022-06-12
OPENCV4_N0: 4.5.5 # 2022-06-12
OPENCV4_N1: 4.5.0 # 2021-12-30
OPENCV4_N2: 4.4.0 # 2020-07-18
# OPENCV4_N0: 4.5.3 #
# OPENCV4_N1: 4.5.2 #
# OPENCV4_N2: 4.5.1 #
# OPENCV3_N0: 4.5.0 #
PYTHON_VERSION: 3.8
PYTHON: "C:\\Python38-x64"
# use self build
OPENCV4NODEJS_DISABLE_AUTOBUILD: 1
matrix:
-
OPENCVV: "%OPENCV4_N0%"
NODEV: 16
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
#-
# OPENCVV: "%OPENCV4_N1%"
# NODEV: 16
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
#-
# OPENCVV: "%OPENCV4_N2%"
# NODEV: 16
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
#-
# OPENCVV: "%OPENCV3_N0%"
# NODEV: 16
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
-
OPENCVV: "%OPENCV4_N0%"
NODEV: 16
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
#-
# OPENCVV: "%OPENCV4_N1%"
# NODEV: 16
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
#-
# OPENCVV: "%OPENCV4_N2%"
# NODEV: 16
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
#-
# OPENCVV: "%OPENCV3_N0%"
# NODEV: 16
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
install:
- cmd: choco install OpenCV -y --version %OPENCVV%
- 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:NODEV x64
# - node --version
build: false
test_script:
- node --version
- npm install -g pnpm
# - pnpm install -g node-gyp
- cd c:\projects\opencv4nodejs
- pnpm install
- pnpm run prepack
# - npm link
# - build-opencv rebuild
# - cd c:\projects\opencv4nodejs\ci\envs && build-opencv rebuild && pnpm install && pnpm test
- cd c:\projects\opencv4nodejs\test
- pnpm install
- pnpm run test-appveyor
- echo Success
# - SET OPENCV4NODEJS_DISABLE_EXTERNAL_MEM_TRACKING=1
# - pnpm run test-externalMemTracking
# - SET OPENCV4NODEJS_DISABLE_EXTERNAL_MEM_TRACKING=
# - pnpm run test-externalMemTracking
#- if "%BUILD_TASK%" == "ENVS" (
# cd c:\projects\opencv4nodejs\ci\envs &&
# pnpm install &&
# pnpm test
# ) else (
# cd c:\projects\opencv4nodejs &&
# pnpm install &&
# cd c:\projects\opencv4nodejs\test &&
# pnpm install &&
# pnpm run test-appveyor &&
# pnpm run test-externalMemTracking
# )