forked from scikit-learn-contrib/DESlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (33 loc) · 1.06 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
language: python
python:
- "3.5"
- "3.6"
# Python 3.7 workaround https://github.com/travis-ci/travis-ci/issues/9815
matrix:
include:
- python: "3.7"
dist: xenial
sudo: true
install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda create -n test_env python="$TRAVIS_PYTHON_VERSION"
- echo ". $HOME/miniconda/etc/profile.d/conda.sh" >> "$HOME/.bashrc"
- source activate test_env
- travis_wait travis_retry pip install -r requirements-dev.txt
- travis_retry pip install codecov
- travis_retry python setup.py build
- travis_retry python setup.py install
# Faiss requires anaconda and only works for python 3.5 and 3.6:
- if [[ "$TRAVIS_PYTHON_VERSION" != "3.7" ]]; then
travis_retry conda install faiss-cpu -c pytorch;
fi
script: coverage run -m py.test
after_success:
- codecov
cache:
- directories:
- $HOME/.cache/pip