add travis CI and coveralls support

This commit is contained in:
Thomas McColgan 2015-09-07 16:28:03 +02:00
parent cb8f0a83e6
commit c77ded2eb6

@ -8,11 +8,14 @@ before_install:
- export PATH=/home/travis/miniconda/bin:$PATH
- conda update --yes conda
python:
- "2.7"
- "3.4"
# command to install dependencies
install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib pandas pytest h5py
# Coverage packages are on my binstar channel
- python setup.py install
- conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib pandas pytest h5py theano
- pip install pytest-cov python-coveralls
# command to run tests
script: py.test tests/
script:
- PYTHONPATH=$PWD:$PYTHONPATH py.test -v --cov-report term-missing --cov keras tests/
after_success:
- coveralls