run nose with --with-coverage flag

This commit is contained in:
Alan Hamlett 2015-09-29 15:30:52 -07:00
parent 096ef6076a
commit 25f951f397

View file

@ -6,12 +6,13 @@ python:
- "3.4" - "3.4"
# command to install dependencies # command to install dependencies
install: install:
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then travis_retry pip install --use-mirrors unittest2; fi - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then travis_retry pip install unittest2; fi
- travis_retry pip install --use-mirrors -r dev-requirements.txt - travis_retry pip install -r dev-requirements.txt
- travis_retry pip install --use-mirrors coveralls - travis_retry pip install coveralls
# command to run tests
script: nosetests
# use new travis-ci container-based infrastructure # use new travis-ci container-based infrastructure
sudo: false sudo: false
# command to run tests
script: nosetests --with-coverage --cover-package=wakatime
# command to run after tests
after_success: after_success:
- coveralls - coveralls