-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
87 lines (79 loc) · 1.59 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
language: cpp
matrix:
fast_finish: true
include:
- os: linux
env: PYTHON=2.7
- os: linux
env: PYTHON=3
- os: osx
env: PYTHON=3
osx_image: xcode9.3
python: 3.7.0
- os: osx
env: PYTHON=2
osx_image: xcode9.3
python: 2.7.14
allow_failures:
- os: osx
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- libblas-dev
- liblapack-dev
- gfortran
- cmake
- python3-dev
- libboost-all-dev
- libgsl0-dev
- libeigen3-dev
before_install:
- |
PIP=pip
PY=python
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
export CXX=g++-4.8 CC=gcc-4.8;
pip install --user --upgrade pip virtualenv
virtualenv -p python$PYTHON venv
source venv/bin/activate
fi
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update
brew install gcc
PIP=pip2
PY=python2
if [ "${PYTHON:0:1}" = "3" ]; then
brew upgrade python
brew install python3
PIP=pip3
PY=python3
fi
fi
install:
- |
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
cmake similarity_search -DWITH_EXTRAS=1
else
cmake similarity_search
fi
make -j 4
travis_wait travis_retry $PIP install -r python_bindings/requirements.txt scipy six flake8
travis_retry cd python_bindings && $PY setup.py build install && cd ..
script:
- $PY --version
- cd python_bindings && $PY setup.py test && cd ..
- |
set -e
if [ "$TRAVIS_OS_NAME" = "linux" ] ; then
cd similarity_search;
./release/bunit
./release/test_integr integr.log
cd ..
fi
cache:
- apt
- directories:
- $HOME/.cache/pip