forked from justadudewhohacks/opencv4nodejs
-
Notifications
You must be signed in to change notification settings - Fork 51
/
appveyor.yml
114 lines (101 loc) · 3.06 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
111
112
113
114
# 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_N0: 4.9.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.9
PYTHON: "C:\\Python39-x64"
# use self build
OPENCV4NODEJS_DISABLE_AUTOBUILD: 1
matrix:
-
OPENCVV: "%OPENCV4_N0%"
NODEV: 20
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: 20
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\vc16\lib
- if not "%BUILD_TASK%" == "ENVS" SET OPENCV_BIN_DIR=c:\tools\opencv\build\x64\vc16\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:
- python --version
- node --version
# - choco install python --version=%PYTHON_VERSION% -y
- npm install -g [email protected]
# - pnpm install -g node-gyp
- cd c:\projects\opencv4nodejs
- pnpm install --frozen-lockfile
- pnpm run prepack
# rebuild is already called im npm install
# - pnpm run rebuild
# - 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 --frozen-lockfile
- 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
# )