From 25f951f397ec847ccfd17514a585ade7088b2841 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Tue, 29 Sep 2015 15:30:52 -0700 Subject: [PATCH] run nose with --with-coverage flag --- .travis.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 266bc85..c9e34fa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,12 +6,13 @@ python: - "3.4" # command to install dependencies install: - - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then travis_retry pip install --use-mirrors unittest2; fi - - travis_retry pip install --use-mirrors -r dev-requirements.txt - - travis_retry pip install --use-mirrors coveralls -# command to run tests -script: nosetests + - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then travis_retry pip install unittest2; fi + - travis_retry pip install -r dev-requirements.txt + - travis_retry pip install coveralls # use new travis-ci container-based infrastructure sudo: false +# command to run tests +script: nosetests --with-coverage --cover-package=wakatime +# command to run after tests after_success: - coveralls