mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-29 11:18:20 +08:00
Something was pulling in the latest (3.0), and then we'd fail to find the 1.0 shared object at import time.
45 lines
1.9 KiB
YAML
45 lines
1.9 KiB
YAML
language: python
|
|
sudo: false
|
|
matrix:
|
|
fast_finish: true
|
|
include:
|
|
- python: 2.7
|
|
env: PANDAS_VERSION=0.16.1 NUMPY_VERSION=1.9.2 SCIPY_VERSION=0.15.1 CACHE_DIR=$HOME/.cache/.pip/pip_np19
|
|
- python: 2.7
|
|
env: PANDAS_VERSION=0.17.1 NUMPY_VERSION=1.10.2 SCIPY_VERSION=0.16.1 CACHE_DIR=$HOME/.cache/.pip/pip_np110
|
|
- python: 3.4
|
|
env: PANDAS_VERSION=0.16.1 NUMPY_VERSION=1.9.2 SCIPY_VERSION=0.15.1 CACHE_DIR=$HOME/.cache/.pip/pip_np19
|
|
- python: 3.4
|
|
env: PANDAS_VERSION=0.17.1 NUMPY_VERSION=1.10.2 SCIPY_VERSION=0.16.1 CACHE_DIR=$HOME/.cache/.pip/pip_np110
|
|
cache:
|
|
directories:
|
|
- $HOME/.cache/.pip/
|
|
|
|
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 libgfortran=1.0 ta-lib=0.4.9
|
|
- source activate testenv
|
|
- pip install --upgrade pip coverage coveralls --cache-dir=$CACHE_DIR
|
|
- pip install -r etc/requirements.txt --cache-dir=$CACHE_DIR
|
|
- pip install -r etc/requirements_dev.txt --cache-dir=$CACHE_DIR
|
|
- pip install -r etc/requirements_blaze.txt --cache-dir=$CACHE_DIR # this uses git requirements right now
|
|
- pip install -e . --cache-dir=$CACHE_DIR
|
|
before_script:
|
|
- pip freeze | sort
|
|
script:
|
|
- nosetests tests/
|
|
- flake8 zipline tests
|
|
after_success:
|
|
- coveralls
|
|
|
|
branches:
|
|
only:
|
|
- master
|