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 - export PATH=/home/travis/miniconda/bin:$PATH
- conda update --yes conda - conda update --yes conda
python: python:
- "2.7"
- "3.4" - "3.4"
# command to install dependencies # command to install dependencies
install: install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib pandas pytest h5py - conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib pandas pytest h5py theano
# Coverage packages are on my binstar channel - pip install pytest-cov python-coveralls
- python setup.py install
# command to run tests # 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