forked from nmslib/nmslib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (66 loc) · 1.45 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
language: cpp
matrix:
fast_finish: true
include:
- os: linux
env: PYTHON=2.7
- os: linux
env: PYTHON=3
- os: osx
env: PYTHON=3.6
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:
- |
if [ "$TRAVIS_OS_NAME" = "linux" ]; then export CXX=g++-4.8 CC=gcc-4.8; fi
if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "${PYTHON:0:1}" = "3" ]; then
brew update
brew upgrade python
command curl -sSL https://rvm.io/mpapis.asc | gpg --import -;
rvm get stable
else
pip install --user --upgrade pip virtualenv
virtualenv -p python$PYTHON venv
source venv/bin/activate
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 && python setup.py build install && cd ..
script:
- |
set -e
if [ "$TRAVIS_OS_NAME" = "linux" -o "$TRAVIS_OS_NAME" = "osx" ] ; then
cd similarity_search;
./release/bunit
./release/test_integr integr.log
cd ..
fi
cd python_bindings
python setup.py test
flake8
cd ..
cache:
- apt
- directories:
- $HOME/.cache/pip