mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-03 12:40:47 +08:00
58 lines
2.5 KiB
YAML
58 lines
2.5 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
|
|
- 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
|
|
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 install conda-build --yes
|
|
|
|
- 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
|
|
- IFS='.' read -r -a NPY_VERSION_ARR <<< "$NUMPY_VERSION"
|
|
- NPY_VERSION_MAJ_MIN=${NPY_VERSION_ARR[0]}${NPY_VERSION_ARR[1]}
|
|
- CACHE_DIR="$HOME/.cache/.pip/pip_np""$NPY_VERSION_MAJ_MIN"
|
|
- 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 .[talib] --cache-dir=$CACHE_DIR
|
|
before_script:
|
|
- pip freeze | sort
|
|
script:
|
|
- conda build conda/bcolz -q --python=$TRAVIS_PYTHON_VERSION --numpy=$NUMPY_VERSION
|
|
- conda build conda/cyordereddict -q --python=$TRAVIS_PYTHON_VERSION --numpy=$NUMPY_VERSION
|
|
- conda build conda/logbook -q --python=$TRAVIS_PYTHON_VERSION --numpy=$NUMPY_VERSION
|
|
- conda build conda/ta-lib -q --python=$TRAVIS_PYTHON_VERSION --numpy=$NUMPY_VERSION
|
|
# unshallow the clone so the conda build can clone it.
|
|
- git fetch --unshallow
|
|
- conda build conda/zipline --python=$TRAVIS_PYTHON_VERSION --numpy=$NPY_VERSION_MAJ_MIN
|
|
|
|
- nosetests tests/
|
|
- flake8 zipline tests
|
|
after_success:
|
|
- coveralls
|
|
|
|
branches:
|
|
only:
|
|
- master
|