forked from UrielCh/opencv4nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
195 lines (179 loc) · 4.99 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
language: node_js
sudo: required
services:
- docker
env:
global:
- OPENCV4NODEJS_DISABLE_AUTOBUILD=1
- LATEST_STABLE_NODEJS_VERSION=12
- OPENCV3_LATEST=3.4.16
- OPENCV4_LATEST=4.5.4
matrix:
include:
# old OpenCV versions
- os: linux
node_js: $LATEST_STABLE_NODEJS_VERSION
env:
- OPENCV_VERSION=3.0.0-contrib
BUILD_TASK=test
- os: linux
node_js: $LATEST_STABLE_NODEJS_VERSION
env:
- OPENCV_VERSION=3.1.0-contrib
BUILD_TASK=test
- os: linux
node_js: $LATEST_STABLE_NODEJS_VERSION
env:
- OPENCV_VERSION=3.2.0-contrib
BUILD_TASK=test
- os: linux
node_js: $LATEST_STABLE_NODEJS_VERSION
env:
- OPENCV_VERSION=3.3.0-contrib
BUILD_TASK=test
- os: linux
node_js: $LATEST_STABLE_NODEJS_VERSION
env:
- OPENCV_VERSION=3.4.0-contrib
BUILD_TASK=test
- os: linux
node_js: $LATEST_STABLE_NODEJS_VERSION
env:
- OPENCV_VERSION=4.0.0-contrib
BUILD_TASK=test
# module list builds
- os: linux
node_js: $LATEST_STABLE_NODEJS_VERSION
env:
- OPENCV_VERSION=4.1.0-core
BUILD_TASK=test
TEST_MODULE_LIST=core
- os: linux
node_js: $LATEST_STABLE_NODEJS_VERSION
env:
- OPENCV_VERSION=4.1.0-imgproc
BUILD_TASK=test
TEST_MODULE_LIST=imgproc
- os: linux
node_js: $LATEST_STABLE_NODEJS_VERSION
env:
- OPENCV_VERSION=4.1.0-calib3d
BUILD_TASK=test
TEST_MODULE_LIST=calib3d
- os: linux
node_js: $LATEST_STABLE_NODEJS_VERSION
env:
- OPENCV_VERSION=4.1.0-dnn
BUILD_TASK=test
TEST_MODULE_LIST=dnn
# OpenCV 3.X without contrib
- os: linux
node_js: $LATEST_STABLE_NODEJS_VERSION
env:
- OPENCV_VERSION=$OPENCV3_LATEST
BUILD_TASK=test
TEST_MODULE_LIST=core,calib3d,dnn,features2d,imgproc,io,ml,objdetect,photo,video
# OpenCV 4.X without contrib
- os: linux
node_js: $LATEST_STABLE_NODEJS_VERSION
env:
- OPENCV_VERSION=$OPENCV4_LATEST
BUILD_TASK=test
TEST_MODULE_LIST=core,calib3d,dnn,features2d,imgproc,io,ml,objdetect,photo,video
# OpenCV 3.X contrib world
- os: linux
node_js: $LATEST_STABLE_NODEJS_VERSION
env:
- OPENCV_VERSION=$OPENCV3_LATEST-contrib-world
BUILD_TASK=test
# OpenCV 4.X contrib world
- os: linux
node_js: $LATEST_STABLE_NODEJS_VERSION
env:
- OPENCV_VERSION=$OPENCV4_LATEST-contrib-world
BUILD_TASK=test
# latest OpenCV 3
- os: linux
node_js: 12
env:
- OPENCV_VERSION=$OPENCV3_LATEST-contrib
BUILD_TASK=test
- os: linux
node_js: 14
env:
- OPENCV_VERSION=$OPENCV3_LATEST-contrib
BUILD_TASK=test
- os: linux
node_js: 16
env:
- OPENCV_VERSION=$OPENCV3_LATEST-contrib
BUILD_TASK=test
- os: linux
node_js: $LATEST_STABLE_NODEJS_VERSION
env:
- OPENCV_VERSION=$OPENCV3_LATEST-contrib
BUILD_TASK=test
# latest OpenCV 4
- os: linux
node_js: 12
env:
- OPENCV_VERSION=$OPENCV4_LATEST-contrib
BUILD_TASK=test
- os: linux
node_js: 14
env:
- OPENCV_VERSION=$OPENCV4_LATEST-contrib
BUILD_TASK=test
- os: linux
node_js: 16
env:
- OPENCV_VERSION=$OPENCV4_LATEST-contrib
BUILD_TASK=test
- os: linux
node_js: $LATEST_STABLE_NODEJS_VERSION
env:
- OPENCV_VERSION=$OPENCV4_LATEST-contrib
BUILD_TASK=test
# code coverage
- os: linux
node_js: $LATEST_STABLE_NODEJS_VERSION
env:
- OPENCV_VERSION=$OPENCV4_LATEST-contrib
BUILD_TASK=cover
# osx opencv@3
# apparently opencv@3 brew package does not include opencv text modules
- os: osx
node_js: $LATEST_STABLE_NODEJS_VERSION
env:
- OPENCV_VERSION=3
TEST_MODULE_LIST=core,calib3d,dnn,features2d,imgproc,io,ml,objdetect,photo,video,face,tracking,xfeatures2d,ximgproc
# osx opencv@4
- os: osx
node_js: $LATEST_STABLE_NODEJS_VERSION
env:
- OPENCV_VERSION=4
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
chmod +x ./ci/$BUILD_TASK/$BUILD_TASK.sh;
fi
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
travis_wait 30 docker pull justadudewhohacks/opencv:$OPENCV_VERSION;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update; brew install opencv@$OPENCV_VERSION;
brew link --force opencv@$OPENCV_VERSION;
fi
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
cd ./ci/$BUILD_TASK;
npm run $BUILD_TASK $OPENCV_VERSION $TRAVIS_NODE_VERSION;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
sh ./ci/test/script/run-test.sh;
fi
after_success:
- if [ "$BUILD_TASK" == "cover" ]; then
npm install;
npm run codecov -- -t $CODECOV_TOKEN;
fi