forked from VarIr/scikit-hubness
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (49 loc) · 1.2 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
lanuage: python
python:
- '3.7'
matrix:
include:
- os: linux
dist: xenial
sudo: true
- os: osx
osx_image: xcode10.3 # default is 9.x, which fails
sudo: true
- os: osx
osx_image: xcode11
sudo: true
env:
global:
- CACHE_DIR="$HOME/virtualenv"
- MINICONDA_DIR="$HOME/miniconda"
- PYTHONIOENCODING=UTF8
before_install:
- travis/install-conda.sh
- export PATH="$MINICONDA_DIR/bin:$PATH"
- hash -r
- conda install -y numpy # install optimized numpy first
- pip install pybind11 # so that nmslib can build
- travis/install-pip.sh # install all the other requirements
- travis/install-build-puffinn.sh # install from cache or build first
install:
- python3 setup.py build
- python3 setup.py install
before_script:
- flake8 --exit-zero .
script:
- pytest skhubness --cov=skhubness
after_success:
# Only on linux, all libraries are supported, thus tested
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then codecov; fi
cache:
- pip
- ccache
- packages
- directories:
- "$HOME/.cache/pip"
- "$HOME/virtualenv"
- "$HOME/miniconda"
branches:
only:
- master
- develop