Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit 1057ba9

Browse files
author
Simon Hofmann
committed
Updated ci setup with cleanup step
1 parent ae01cf6 commit 1057ba9

File tree

4 files changed

+25
-15
lines changed

4 files changed

+25
-15
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ matrix:
6060

6161
before_install:
6262
- chmod +x ./ci/$BUILD_TASK/$BUILD_TASK.sh;
63+
- chmod +x ./ci/clean.sh
64+
- bash ./ci/clean.sh
6365

6466
install: true
6567

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ environment:
4242
DISABLE_ASYNC_HOOKS_TEST: 1
4343

4444
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
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

ci/clean.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+

ci/prebuild/prebuild.sh

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
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-
162
cd ../../ &&\
173
npm install --unsafe-perm &&\
4+
cd test
185
npm test
6+
cd -
197
npm run prebuild -- --tag-prefix "" -u $GITHUB_TOKEN;

0 commit comments

Comments
 (0)