forked from nmslib/nmslib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (45 loc) · 1.03 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
language: cpp
matrix:
include:
- os: linux
env: PYTHON=2.7
- os: osx
env: PYTHON=3.6
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- libblas-dev
- liblapack-dev
- gfortran
- cmake
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 install python3;
fi
pip install --user --upgrade pip virtualenv
virtualenv -p python$PYTHON venv
source venv/bin/activate
install:
- cmake similarity_search && make -j 4
- travis_wait travis_retry pip install -r python_bindings/requirements.txt scipy six
- 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
cd ..
fi
cd python_bindings
python setup.py test
cd ..
cache:
- apt
- directories:
- $HOME/.cache/pip