Skip to content

Commit aba0c7e

Browse files
setup travis ci
1 parent 90fc0dd commit aba0c7e

File tree

1 file changed

+34
-4
lines changed

1 file changed

+34
-4
lines changed

.travis.yml

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
1-
language: node_js
2-
node_js:
3-
- "7"
1+
language:
2+
- cpp
43

5-
script: cd ./test && npm install && npm test
4+
compiler:
5+
- gcc
6+
7+
before_install:
8+
- sudo apt-get update
9+
10+
install:
11+
- ls
12+
- sudo apt-get install -y build-essential
13+
- sudo apt-get install -y cmake git
14+
15+
# setup opencv 3.2 with extra modules
16+
- curl -sL https://github.com/Itseez/opencv/archive/3.2.0.zip > opencv.zip
17+
- unzip opencv.zip
18+
- curl -sL https://github.com/Itseez/opencv_contrib/archive/3.2.0.zip > opencv_contrib.zip
19+
- unzip opencv_contrib.zip
20+
21+
- cd opencv-3.2.0
22+
- mkdir build
23+
- cd build
24+
- cmake -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-3.2.0/modules CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local
25+
- make -j5
26+
- sudo make install
27+
- sudo sh -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/opencv.conf'
28+
- sudo ldconfig
29+
- cd ../../
30+
31+
# setup opencv4nodejs
32+
- curl -sL https://github.com/justadudewhohacks/opencv4nodejs > opencv4nodejs.zip
33+
- unzip opencv4nodejs.zip
34+
35+
script: cd ./opencv4nodejs/test && npm install && npm test

0 commit comments

Comments
 (0)