forked from benfred/implicit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (61 loc) · 1.28 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
language: python
sudo: require
python:
- "2.7"
- "3.5"
- "3.6"
matrix:
include:
- language: generic
os: osx
python: 2.7.14
env: PYTHON=2
osx_image: xcode11
- language: generic
os: osx
python: 3.6.5
env: PYTHON=3
osx_image: xcode11
addons:
apt:
packages:
- libblas-dev
- liblapack-dev
- gfortran
homebrew:
packages:
- python3
before_install:
- |
PIP=pip
PY=python
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
PIP=pip2
PY=python2
if [ "${PYTHON:0:1}" = "3" ]; then
PIP=pip3
PY=python3
fi
fi
install:
- |
travis_wait travis_retry $PIP uninstall numpy -y
travis_wait travis_retry $PIP install -r requirements.txt --ignore-installed flake8 isort cpplint faiss annoy
if [ "${PYTHON:0:1}" = "3" ]; then
travis_wait travis_retry $PIP install nmslib
fi
travis_retry $PIP install -e .
script:
- flake8
- flake8 --filename='*.pyx,*.px*' --ignore E901,E225,E226,E227,E999
- isort -c implicit/*.py
- isort -c examples/*.py
- isort -c tests/*.py
- isort -c --thirdparty=seaborn --thirdparty=matplotlib --thirdparty=pyspark benchmarks/*.py
- cpplint --linelength 100 **/*.h
- $PY --version
- $PY setup.py test
cache:
- apt
- directories:
- $HOME/.cache/pip