diff --git a/.travis.yml b/.travis.yml index 4faf2244..111b1183 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,16 +24,19 @@ before_install: - 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 - 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 + - pip install -e .[talib] --cache-dir=$CACHE_DIR before_script: - pip freeze | sort script: + - IFS='.' read -r -a conda_npy_version <<< "$NUMPY_VERSION" + - conda build conda/zipline --python=$TRAVIS_PYTHON_VERSION --numpy="${conda_npy_version[0]}.${conda_npy_version[1]}" # accepts only major.minor - nosetests tests/ - flake8 zipline tests after_success: diff --git a/appveyor.yml b/appveyor.yml index 75c5fd29..51bf1bee 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -48,14 +48,14 @@ install: - conda install conda-build - cmd: '%CMD_IN_ENV% conda build conda\ta-lib -q' - - cmd: conda create -n testenv --yes -c quantopian pip numpy=%NUMPY_VERSION% scipy=%SCIPY_VERSION% ta-lib=0.4.9 + - cmd: conda create -n testenv --yes --use-local pip numpy=%NUMPY_VERSION% scipy=%SCIPY_VERSION% ta-lib=0.4.9 - cmd: activate testenv - cmd: pip install --upgrade pip coverage coveralls - cmd: pip install -r etc/requirements.txt - cmd: pip install -r etc/requirements_dev.txt # this uses git requirements right now - cmd: pip install -r etc/requirements_blaze.txt - - cmd: pip install -e . + - cmd: pip install -e .[talib] test_script: - cd \