-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (34 loc) · 1.34 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
# Config file for automatic testing at travis-ci.org
# This file will be regenerated if you run travis_pypi_setup.py
language: generic
os: osx
compiler:
- clang++
cache:
directories:
- $HOME/.cache/pip
install:
- brew update
- brew tap homebrew/science
- brew install opencv3
- brew link --force opencv3
- echo /usr/local/opt/opencv3/lib/python2.7/site-packages >> /usr/local/lib/python2.7/site-packages/opencv3.pth
# - echo /usr/local/opt/opencv3/lib/python3.6/site-packages >> /usr/local/lib/python3.6/site-packages/opencv3.pth
- brew install boost-python
- mkdir -p native/build && cd native/build
- cmake ..
-DPYTHON_DESIRED_VERSION=2.X
-DPYTHON2_EXECUTABLE=/usr/local/bin/python
-DBoost_INCLUDE_DIR=/usr/local/bin/python
-DPYTHON2_LIBRARY=/usr/local/Cellar/python/2.7.15/Frameworks/Python.framework/Versions/Current/lib/libpython2.7.dylib
-DPYTHON2_INCLUDE_DIR=/usr/local/Cellar/python/2.7.15/Frameworks/Python.framework/Versions/Current/include/python2.7/
-DPYTHON2_NUMPY_INCLUDE_DIRS=/usr/local/Cellar/numpy/1.12.0/lib/python2.7/site-packages/numpy/core/include/
-DBOOST_ROOT=/usr/local/Cellar/boost/1.68.0/
-DBoost_INCLUDE_DIR=/usr/local/Cellar/boost/1.68.0/include/
- make
- make install
- pip install tox codecov
script:
- tox -- $TOX_FLAGS
#after_success:
# - ./.travis/update_coverage.sh