mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-09 11:50:09 +08:00
39 lines
1.4 KiB
YAML
39 lines
1.4 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.4
|
|
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 https://repo.continuum.io/miniconda/Miniconda-3.7.0-Linux-x86_64.sh -O miniconda.sh; else wget https://repo.continuum.io/miniconda/Miniconda3-3.7.0-Linux-x86_64.sh -O miniconda.sh; fi
|
|
- chmod +x miniconda.sh
|
|
- ./miniconda.sh -b -p $HOME/miniconda
|
|
- export PATH="$HOME/miniconda/bin:$PATH"
|
|
install:
|
|
- conda create -n testenv --yes pip python=$TRAVIS_PYTHON_VERSION
|
|
- source activate testenv
|
|
- conda install --yes -c quantopian numpy=$NUMPY_VERSION pandas=$PANDAS_VERSION scipy=$SCIPY_VERSION Cython=0.22.1 ta-lib=0.4.8
|
|
- conda remove --yes six pytz # remove these packages so our requirements can downgrade them
|
|
- pip install --upgrade pip coverage coveralls
|
|
- pip install -r etc/requirements.txt
|
|
- pip install -r etc/requirements_dev.txt
|
|
- pip install -r etc/requirements_blaze.txt # this uses git requirements right now
|
|
- pip install -e .
|
|
before_script:
|
|
- pip freeze | sort
|
|
- flake8 zipline tests
|
|
script:
|
|
- nosetests --with-timer --exclude=^test_examples --with-coverage --cover-package=zipline --timer-top-n=15
|
|
after_success:
|
|
- coveralls
|
|
|
|
branches:
|
|
only:
|
|
- master
|