This repository was archived by the owner on Oct 18, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +25
-15
lines changed Expand file tree Collapse file tree 4 files changed +25
-15
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ matrix:
6060
6161before_install :
6262 - chmod +x ./ci/$BUILD_TASK/$BUILD_TASK.sh;
63+ - chmod +x ./ci/clean.sh
64+ - bash ./ci/clean.sh
6365
6466install : true
6567
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ environment:
4242 DISABLE_ASYNC_HOOKS_TEST : 1
4343
4444install :
45- - IF EXIST c:\opencv-prebuilt RMDIR /S /Q c:\opencv-prebuilt
45+ - IF EXIST c:\opencv-prebuilt rd /s /q c:\opencv-prebuilt
4646 # - cmd: choco install OpenCV -y -version %OPENCV_VERSION%
4747 - IF EXIST c:\tools\opencv* CD c:\tools\opencv*
4848 - SET OPENCV_INCLUDE_DIR=%CD%\build\include
Original file line number Diff line number Diff line change 1+ #! /usr/bin/sh
2+ set -e
3+
4+ if [[ " $TRAVIS_OS_NAME " == " linux" ]] || [[ " $TRAVIS_OS_NAME " == " osx" ]]
5+ then
6+ dirs=(
7+ /opt/opencv-prebuilt
8+ /usr/local/opt/opencv-prebuilt
9+ )
10+
11+ for dir in ${dirs[*]}
12+ do
13+ if [ -d $dir ]
14+ then
15+ echo " Removing '$dir '"
16+ rm -rf $dir
17+ fi
18+ done
19+ fi
20+
Original file line number Diff line number Diff line change 11#! /bin/sh
2- if [[ " $TRAVIS_OS_NAME " == " linux" ]] || [[ " $TRAVIS_OS_NAME " == " osx" ]];
3- then
4- dirs=(
5- /opt/opencv-prebuilt
6- /usr/local/opt/opencv-prebuilt
7- )
8-
9- for dir in ${dirs[*]} ; do if [ -d $dir ]; then rm -rf $dir ; fi ; done
10- fi
11- if [[ " $TRAVIS_OS_NAME " == " windows" ]];
12- then
13- for dir in ${dirs[*]} ; do if [ -d $dir ]; then rm -rf $dir ; fi ; done
14- fi
15-
162cd ../../ && \
173npm install --unsafe-perm && \
4+ cd test
185npm test
6+ cd -
197npm run prebuild -- --tag-prefix " " -u $GITHUB_TOKEN ;
You can’t perform that action at this time.
0 commit comments