File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,10 @@ environment:
50
50
51
51
install :
52
52
- cmd : choco install OpenCV -y -version %OPENCV_VERSION%
53
- - if not "%BUILD_TASK%" == "ENVS" (
54
- SET OPENCV_INCLUDE_DIR="c:\tools\opencv\build\include" &&
55
- SET OPENCV_LIB_DIR="c:\tools\opencv\build\x64\vc14\lib" &&
56
- SET OPENCV_BIN_DIR="c:\tools\opencv\build\x64\vc14\bin" &&
57
- SET PATH="%PATH%;%OPENCV_BIN_DIR%;"
58
- )
53
+ - if not "%BUILD_TASK%" == "ENVS" SET OPENCV_INCLUDE_DIR=c:\tools\opencv\build\include
54
+ - if not "%BUILD_TASK%" == "ENVS" SET OPENCV_LIB_DIR=c:\tools\opencv\build\x64\vc14\lib
55
+ - if not "%BUILD_TASK%" == "ENVS" SET OPENCV_BIN_DIR=c:\tools\opencv\build\x64\vc14\bin
56
+ - if not "%BUILD_TASK%" == "ENVS" SET PATH=%PATH%;%OPENCV_BIN_DIR%;
59
57
- ps : Install-Product node $env:nodejs_version x64
60
58
- node --version
61
59
- npm install -g node-gyp
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ describe('cv', () => {
76
76
console . log ( 'expected modules to be built:' , builtModules )
77
77
78
78
it ( 'OpenCV version should match' , ( ) => {
79
- expect ( process . env . OPENCV_VERSION ) . to . equal ( opencvVersionString )
79
+ expect ( ( process . env . OPENCV_VERSION || '' ) . substr ( 0 , 5 ) ) . to . equal ( opencvVersionString )
80
80
} )
81
81
82
82
it ( 'all modules should be built' , ( ) => {
You can’t perform that action at this time.
0 commit comments