mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-01 12:20:21 +08:00
45 lines
1.6 KiB
YAML
45 lines
1.6 KiB
YAML
language: python
|
|
sudo: false
|
|
cache:
|
|
directories:
|
|
- $HOME/.cache/pip
|
|
matrix:
|
|
fast_finish: true
|
|
include:
|
|
- python: 2.7
|
|
env: PANDAS_VERSION=0.16.1 NUMPY_VERSION=1.9.2 SCIPY_VERSION=0.15.1
|
|
- python: 2.7
|
|
env: PANDAS_VERSION=0.17.1 NUMPY_VERSION=1.10.2 SCIPY_VERSION=0.16.1
|
|
- python: 3.4
|
|
env: PANDAS_VERSION=0.16.1 NUMPY_VERSION=1.9.2 SCIPY_VERSION=0.15.1
|
|
- python: 3.4
|
|
env: PANDAS_VERSION=0.17.1 NUMPY_VERSION=1.10.2 SCIPY_VERSION=0.16.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"
|
|
- sed -i "s/numpy==.*/numpy==$NUMPY_VERSION/" etc/requirements.txt
|
|
- sed -i "s/pandas==.*/pandas==$PANDAS_VERSION/" etc/requirements.txt
|
|
- sed -i "s/scipy==.*/scipy==$SCIPY_VERSION/" etc/requirements.txt
|
|
install:
|
|
- conda create -n testenv --yes -c quantopian pip python=$TRAVIS_PYTHON_VERSION numpy=$NUMPY_VERSION scipy=$SCIPY_VERSION ta-lib=0.4.8
|
|
- source activate testenv
|
|
- 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
|
|
script:
|
|
- nosetests tests/
|
|
- flake8 zipline tests
|
|
after_success:
|
|
- coveralls
|
|
|
|
branches:
|
|
only:
|
|
- master
|