/
.travis.yml
32 lines (29 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
language: python
sudo: false
matrix:
include:
# "Recommended" environments: More recent versions, for Py2 and Py3.
- python: "2.7"
env: DEPS="numpy scipy"
- python: "3.4"
env: DEPS="numpy scipy"
- python: "3.5"
env: DEPS="numpy scipy"
- python: "3.6"
env: DEPS="numpy scipy"
# - python: "pypy" # PyPy2 2.5.0
# env: DEPS="numpy"
- python: "pypy2.7-5.8.0"
env: DEPS="numpy"
- python: "pypy3.5-5.8.0"
env: DEPS="numpy"
dist: trusty
install:
- travis_retry pip install --upgrade pip setuptools wheel
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy'* ]]; then travis_retry pip install --only-binary=numpy,scipy $DEPS; fi
- if [[ $TRAVIS_PYTHON_VERSION == 'pypy'* ]]; then travis_retry pip install $DEPS; fi
- if [[ $TRAVIS_PYTHON_VERSION == 'pypy'* ]]; then travis_retry pip install nose; fi
- travis_retry python setup.py install
script:
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy'* ]]; then nosetests --nologcapture; fi
- if [[ $TRAVIS_PYTHON_VERSION == 'pypy'* ]]; then python -mnose; fi