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:
60
60
61
61
before_install :
62
62
- chmod +x ./ci/$BUILD_TASK/$BUILD_TASK.sh;
63
+ - chmod +x ./ci/clean.sh
64
+ - bash ./ci/clean.sh
63
65
64
66
install : true
65
67
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ environment:
42
42
DISABLE_ASYNC_HOOKS_TEST : 1
43
43
44
44
install :
45
- - IF EXIST c:\opencv-prebuilt RMDIR /S /Q c:\opencv-prebuilt
45
+ - IF EXIST c:\opencv-prebuilt rd /s /q c:\opencv-prebuilt
46
46
# - cmd: choco install OpenCV -y -version %OPENCV_VERSION%
47
47
- IF EXIST c:\tools\opencv* CD c:\tools\opencv*
48
48
- 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 1
1
#! /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
-
16
2
cd ../../ && \
17
3
npm install --unsafe-perm && \
4
+ cd test
18
5
npm test
6
+ cd -
19
7
npm run prebuild -- --tag-prefix " " -u $GITHUB_TOKEN ;
You can’t perform that action at this time.
0 commit comments