mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-11 00:49:36 +08:00
Merge pull request #1002 from quantopian/travis-pip-cache
BLD: Use separate travis pip cache subdirs per numpy version
This commit is contained in:
+12
-9
@@ -4,13 +4,16 @@ matrix:
|
||||
fast_finish: true
|
||||
include:
|
||||
- python: 2.7
|
||||
env: PANDAS_VERSION=0.16.1 NUMPY_VERSION=1.9.2 SCIPY_VERSION=0.15.1
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
@@ -23,11 +26,11 @@ before_install:
|
||||
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 .
|
||||
- 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:
|
||||
|
||||
Reference in New Issue
Block a user