/
.travis.yml
65 lines (58 loc) · 1.56 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
language: python
# using container based testing is faster, but you can't use sudo
sudo: false
# dist: trusty
# dist: precise
python:
# - "2.7_with_system_site_packages"
- "2.7"
- "3.6"
# command to install dependencies that require sudo
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
addons:
apt:
packages:
- python-numpy
- python-yaml
- build-essential
- cmake
- python-tk
- libgtk2.0-dev
- pkg-config
- libavcodec-dev
- libavformat-dev
- libswscale-dev
- python-dev
- python-numpy
- libtbb-dev
- libjpeg-dev
- libpng-dev
- libtiff-dev
- libjasper-dev
- ffmpeg
- python-matplotlib
# cache the opencv3 build so we don't have to rebuild it every time
cache:
directories:
- $OPENCV_INSTALL_DIR
pip: true
env:
global:
- OPENCV_VERSION=3.2.0
- OPENCV_INSTALL_DIR="$HOME/opencv-$OPENCV_VERSION-install"
- LD_LIBRARY_PATH="$OPENCV_INSTALL_DIR/lib"
- PKG_CONFIG_PATH="$OPENCV_INSTALL_DIR/lib/pkgconfig"
- PYTHONPATH="$OPENCV_INSTALL_DIR/lib/python2.7/site-packages"
#
# before_install:
# - ./install-opencv.sh
# install other libraries using pip
install:
- ./install-opencv.sh
- pip install -U pip setuptools wheel
- pip install -r requirements.txt
- pip list
# - pip install .
# command to run tests
# script: cd tests && nosetests -v *.py
script: true