This repository was archived by the owner on Oct 18, 2023. It is now read-only.
File tree 5 files changed +34
-5
lines changed
5 files changed +34
-5
lines changed Original file line number Diff line number Diff line change @@ -92,9 +92,7 @@ matrix:
92
92
- BUILD_TASK=prebuild
93
93
94
94
before_install :
95
- - if [[ $BUILD_TASK != "prebuild" ]]; then
96
- chmod +x ./ci/$BUILD_TASK/$BUILD_TASK.sh;
97
- fi
95
+ - chmod +x ./ci/$BUILD_TASK/$BUILD_TASK.sh;
98
96
99
97
install :
100
98
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then travis_wait 30 docker pull justadudewhohacks/opencv4nodejs-ci:$TAG; fi
@@ -109,8 +107,9 @@ script:
109
107
110
108
after_success :
111
109
- if [[ $TRAVIS_TAG != "" && $BUILD_TASK == "prebuild" ]]; then
112
- npm install;
113
- npm run prebuild -- --tag-prefix "" -u $GITHUB_TOKEN;
110
+ cd ./ci/$BUILD_TASK;
111
+ npm run $BUILD_TASK $TAG;
112
+ cd -;
114
113
fi
115
114
- if [ $BUILD_TASK = 'cover' ]; then
116
115
npm install;
Original file line number Diff line number Diff line change
1
+ ARG TAG
2
+
3
+ FROM justadudewhohacks/opencv4nodejs-ci:${TAG}
4
+
5
+ COPY ./ ./
6
+ CMD ["bin/bash" , "./ci/test/script/run-prebuild.sh" ]
Original file line number Diff line number Diff line change
1
+ {
2
+ "scripts" : {
3
+ "test" : " bash ./prebuild.sh"
4
+ }
5
+ }
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ if [[ " $TRAVIS_OS_NAME " == " linux" ]];
3
+ then
4
+ image=opencv4nodejs-ci_$1
5
+ docker build -t $image -f ./Dockerfile --build-arg TAG=$1 ../../
6
+ docker run -e GITHUB_TOKEN=$GITHUB_TOKEN $image
7
+ elif [[ " $TRAVIS_OS_NAME " == " osx" ]];
8
+ then
9
+ cd ../../ && \
10
+ npm install --unsafe-perm && \
11
+ npm run prebuild -- --tag-prefix " " -u $GITHUB_TOKEN ;
12
+ fi
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ export OPENCV4NODEJS_DISABLE_AUTOBUILD=1
3
+ echo " Installing dependencies" && \
4
+ npm install --unsafe-perm && \
5
+ echo " Running prebuild" && \
6
+ npm install --unsafe-perm && \
7
+ npm run prebuild -- --tag-prefix " " -u $GITHUB_TOKEN ;
You can’t perform that action at this time.
0 commit comments