mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-12 19:06:35 +08:00
30 lines
1.3 KiB
YAML
30 lines
1.3 KiB
YAML
language: python
|
|
sudo: false
|
|
cache:
|
|
directories:
|
|
- $HOME/.cache/pip
|
|
matrix:
|
|
include:
|
|
- python: 2.7
|
|
env: PANDAS_VERSION=0.16.1 NUMPY_VERSION=1.9.2 SCIPY_VERSION=0.15.1
|
|
- python: 3.3
|
|
env: PANDAS_VERSION=0.16.1 NUMPY_VERSION=1.9.2 SCIPY_VERSION=0.15.1
|
|
|
|
before_install:
|
|
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-3.7.0-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-3.7.0-Linux-x86_64.sh -O miniconda.sh; fi
|
|
- chmod +x miniconda.sh
|
|
- ./miniconda.sh -b
|
|
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then export PATH=/home/travis/miniconda/bin:$PATH; else export PATH=/home/travis/miniconda3/bin:$PATH; fi
|
|
install:
|
|
- conda create -n testenv --yes pip python=$TRAVIS_PYTHON_VERSION
|
|
- source activate testenv
|
|
- conda install --yes -c https://conda.binstar.org/Quantopian numpy=$NUMPY_VERSION pandas=$PANDAS_VERSION scipy==$SCIPY_VERSION matplotlib Cython patsy statsmodels tornado pyparsing xlrd mock pytz requests six dateutil ta-lib logbook
|
|
- pip install --upgrade pip nose-timer coverage
|
|
- pip install -e .[dev]
|
|
before_script:
|
|
- "flake8 zipline tests"
|
|
script:
|
|
- nosetests --with-timer --exclude=^test_examples --with-coverage --cover-package=zipline
|
|
after_success:
|
|
- coveralls
|