forked from benfred/implicit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (54 loc) · 1.04 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
language: python
sudo: require
python:
- "2.7"
- "3.5"
- "3.6"
matrix:
include:
- language: generic
os: osx
python: 2.7.14
osx_image: xcode9.3
env: PYTHON=2
- language: generic
os: osx
python: 3.6.5
osx_image: xcode9.3
env: PYTHON=3
addons:
apt:
packages:
- libblas-dev
- liblapack-dev
- gfortran
before_install:
- |
PIP=pip
PY=python
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:
- travis_wait travis_retry $PIP install -r requirements.txt --ignore-installed flake8 isort cpplint annoy
- travis_retry $PIP install -e .
script:
- flake8
- flake8 --filename='*.pyx,*.px*' --ignore E901,E225,E226,E227,E999
- isort -c **/*.py
- cpplint --linelength 100 **/*.h
- $PY --version
- $PY setup.py test
cache:
- apt
- directories:
- $HOME/.cache/pip