@@ -14,44 +14,46 @@ init:
1414
1515# what combinations to test
1616environment :
17- OPENCV3_LATEST : 3.4.6
18- OPENCV4_LATEST : 4.1.0
1917 PYTHON_VERSION : 2.7
2018 PYTHON : " C:\\ Python27-x64"
21- # use self build
2219
2320 matrix :
2421 - nodejs_version : 12
2522 APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2017
26- OPENCV_VERSION : " %OPENCV4_LATEST%"
2723 - nodejs_version : 11
2824 APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2017
29- OPENCV_VERSION : " %OPENCV4_LATEST%"
3025 - nodejs_version : 10
3126 APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2017
32- OPENCV_VERSION : " %OPENCV4_LATEST%"
3327 - nodejs_version : 8
3428 APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2017
35- OPENCV_VERSION : " %OPENCV4_LATEST%"
3629 - nodejs_version : 6
3730 APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2017
38- OPENCV_VERSION : " %OPENCV4_LATEST%"
3931
4032install :
33+ # - cmd: choco install OpenCV -y -version %OPENCV_VERSION%
34+ # - if not "%BUILD_TASK%" == "ENVS" SET OPENCV_INCLUDE_DIR=c:\tools\opencv\build\include
35+ # - if not "%BUILD_TASK%" == "ENVS" SET OPENCV_LIB_DIR=c:\tools\opencv\build\x64\vc14\lib
36+ # - if not "%BUILD_TASK%" == "ENVS" SET OPENCV_BIN_DIR=c:\tools\opencv\build\x64\vc14\bin
37+ # - if not "%BUILD_TASK%" == "ENVS" SET PATH=%PATH%;%OPENCV_BIN_DIR%;
4138 - ps : Install-Product node $env:nodejs_version x64
4239 - node --version
43- - npm install -g node-gyp
44- - cd c:\projects\opencv4nodejs
45- - npm install
4640
4741build : off
4842
4943test_script :
5044 - node --version
51- - cmd : cd c:\projects\opencv4nodejs\test
52- - npm install
53- - npm run test-appveyor
54- - npm run test-externalMemTracking
45+ - if "%BUILD_TASK%" == "ENVS" (
46+ cd c:\projects\opencv4nodejs\ci\envs &&
47+ npm install &&
48+ npm test
49+ ) else (
50+ cd c:\projects\opencv4nodejs &&
51+ npm install &&
52+ cd c:\projects\opencv4nodejs\test &&
53+ npm install &&
54+ npm run test-appveyor &&
55+ npm run test-externalMemTracking
56+ )
5557
5658on_success :
5759 - cmd : cd c:\projects\opencv4nodejs
0 commit comments