Merge pull request #303 from peterbraden/travis-docker

Travis docker
This commit is contained in:
Peter Braden 2015-09-22 19:16:06 +02:00
commit 246de81274
2 changed files with 9 additions and 1 deletions

View File

@ -12,6 +12,10 @@ node_js:
- '0.12'
- "iojs-v1.0.4"
sudo: required
services:
- docker
compiler: clang
env:
@ -50,6 +54,7 @@ install:
# test our module
- npm test
- node lib/opencv.js
- docker build -t peterbraden/node-opencv .
before_script:
- echo "Publishing native platform Binary Package? ->" $PUBLISH_BINARY

View File

@ -15,4 +15,7 @@ run apt-get update
run apt-get install -y libcv-dev libcvaux-dev libhighgui-dev libopencv-dev
run curl -sL https://deb.nodesource.com/setup | bash -
run apt-get install -y nodejs
run npm install opencv || cat npm-debug.log
WORKDIR /root/node-opencv
add . /root/node-opencv
run npm install --unsafe-perm --build-from-source || cat npm-debug.log
run make test