forked from scrtlabs/catalyst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (49 loc) · 2.03 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: python
matrix:
include:
- python: 2.7
env:
- PANDAS_VERSION=0.12.0
- NUMPY_VERSION=1.8.0
- USE_CYORDEREDDICT=no
- python: 2.7
env:
- PANDAS_VERSION=0.13.1
- NUMPY_VERSION=1.8.0
- USE_CYORDEREDDICT=no
- python: 2.7
env:
- PANDAS_VERSION=0.14.1
- NUMPY_VERSION=1.8.0
- USE_CYORDEREDDICT=yes
- python: 3.3
env:
- PANDAS_VERSION=0.15.2
- NUMPY_VERSION=1.9.0
- USE_CYORDEREDDICT=yes
before_install:
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-3.7.0-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-3.7.0-Linux-x86_64.sh -O miniconda.sh; fi
- chmod +x miniconda.sh
- ./miniconda.sh -b
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then export PATH=/home/travis/miniconda/bin:$PATH; else export PATH=/home/travis/miniconda3/bin:$PATH; fi
- sudo apt-get install gfortran
install:
- conda create -n testenv --yes pip python=$TRAVIS_PYTHON_VERSION
- source activate testenv
- conda install --yes -c https://conda.binstar.org/Quantopian numpy=$NUMPY_VERSION pandas=$PANDAS_VERSION scipy nose matplotlib Cython patsy statsmodels tornado pyparsing xlrd mock pytz requests six dateutil ta-lib logbook
- if [[ "$USE_CYORDEREDDICT" == "yes" ]]; then pip install cyordereddict; fi
- grep pyflakes== etc/requirements_dev.txt | xargs pip install
- grep pep8== etc/requirements_dev.txt | xargs pip install
- grep mccabe== etc/requirements_dev.txt | xargs pip install
- grep flake8== etc/requirements_dev.txt | xargs pip install
- grep nose== etc/requirements_dev.txt | xargs pip install
- grep nose-parameterized== etc/requirements_dev.txt | xargs pip install
- grep nose-ignore-docstring== etc/requirements_dev.txt | xargs pip install
- pip install coveralls
- pip install nose-timer
before_script:
- "flake8 zipline tests"
script:
- nosetests --with-timer --exclude=^test_examples --with-coverage --cover-package=zipline
after_success:
- coveralls