Skip to content

Commit 8a25693

Browse files
fixes appveyor.yml
1 parent 8f24a56 commit 8a25693

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

appveyor.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,11 @@ environment:
5050

5151
install:
5252
- cmd: choco install OpenCV -y -version %OPENCV_VERSION%
53-
if ($env:BUILD_TASK -neq "ENVS") {
54-
appveyor DownloadFile https://github.com/bazelbuild/bazel/releases/download/0.28.1/bazel-0.28.1-windows-x86_64.exe -FileName bazel.exe
55-
}
56-
- if not "%BUILD_TASK%" == "ENVS" (
57-
SET OPENCV_INCLUDE_DIR=c:\tools\opencv\build\include
58-
SET OPENCV_LIB_DIR=c:\tools\opencv\build\x64\vc14\lib
59-
SET OPENCV_BIN_DIR=c:\tools\opencv\build\x64\vc14\bin
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 && \
6057
SET PATH=%PATH%;%OPENCV_BIN_DIR%;
61-
)
6258
- ps: Install-Product node $env:nodejs_version x64
6359
- node --version
6460
- npm install -g node-gyp
@@ -69,11 +65,13 @@ build: off
6965

7066
test_script:
7167
- node --version
72-
- if "%BUILD_TASK%" == "ENVS" (
73-
cmd: cd .\ci\envs
74-
) else (
75-
cmd: cd c:\projects\opencv4nodejs\test
76-
npm install
77-
npm run test-appveyor
78-
npm run test-externalMemTracking
68+
- if "%BUILD_TASK%" == "ENVS" ( \
69+
cd .\ci\envs \
70+
npm install \
71+
npm test \
72+
) else ( \
73+
cd c:\projects\opencv4nodejs\test \
74+
npm install \
75+
npm run test-appveyor \
76+
npm run test-externalMemTracking \
7977
)

0 commit comments

Comments
 (0)