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

Commit 68902a6

Browse files
author
Simon Hofmann
committed
Updated Travis config to make use of new build task
1 parent 6e005fc commit 68902a6

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.travis.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,26 @@ env:
3232
TAG=3.4.3
3333
- BUILD_TASK=test
3434
TAG=3.4.3-contrib
35+
- BUILD_TASK=prebuild
36+
TAG=3.4.3-contrib
3537

3638
before_install:
3739
- chmod +x ./ci/$BUILD_TASK/$BUILD_TASK.sh
3840

3941
install: travis_wait 30 docker pull justadudewhohacks/opencv4nodejs-ci:$TAG
4042

4143
script:
42-
- cd ./ci/$BUILD_TASK
43-
- npm run $BUILD_TASK $TAG
44-
- cd -
44+
- if [[ $BUILD_TASK != "prebuild" ]]; then
45+
cd ./ci/$BUILD_TASK
46+
npm run $BUILD_TASK $TAG
47+
cd -
48+
fi
4549

4650
after_success:
47-
- if [[ $TRAVIS_TAG != "" ]]; then
48-
npm install;
49-
npm run prebuild -- -u $GITHUB_TOKEN;
51+
- if [[ $TRAVIS_TAG != "" && $BUILD_TASK == "prebuild" ]]; then
52+
cd ./ci/$BUILD_TASK
53+
npm run $BUILD_TASK $TAG
54+
cd -
5055
fi
5156
- if [ $BUILD_TASK = 'cover' ]; then
5257
npm install;

0 commit comments

Comments
 (0)