-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
41 lines (33 loc) · 1.25 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
language: python
dist: trusty
python: 3.6.3
cache:
timeout: 600
pip: true
directories:
- opencv/
- opencv_contrib/
before_install:
- sudo apt-get update
install:
# OpenCV dependencies - Details available at: http://docs.opencv.org/trunk/doc/tutorials/introduction/linux_install/linux_install.html
- sudo apt-get install -y build-essential
- sudo apt-get install -y cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
- sudo apt-get install -y python3-numpy tesseract-ocr
# Install python dependencies
- make
# Download v3.0.0 .zip file and extract.
- bash build_opencv.sh
# Install to OS.
- cd opencv/build/
- sudo make install
# Add configuration to OpenCV to tell it where the library files are located on the file system (/usr/local/lib)
- sudo sh -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/opencv.conf'
- sudo ldconfig
- echo "OpenCV installed."
# We need to return to the repo "root" folder, so we can then 'cd' into the C++ project folder.
- cd ../../
- export PYTHONPATH=$PYTHONPATH:/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages
- pip install . --upgrade
script:
- make test