From c4ea8f97a49d8d7e1e17dbe780633f62dec0da74 Mon Sep 17 00:00:00 2001 From: Rob Young Date: Mon, 24 Jun 2013 21:27:11 +0100 Subject: [PATCH] Integrate with coveralls coverage reporting --- .coveragerc | 5 +++++ .travis.yml | 9 +++++++-- requirements_for_tests.txt | 1 + 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..b8902ad5 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,5 @@ +[run] +source = backdrop + +[report] +include = backdrop/* diff --git a/.travis.yml b/.travis.yml index a31d0651..b50b1577 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,9 +5,14 @@ python: # Need mongodb for testing services: mongodb # command to install dependencies -install: "pip install -r requirements_for_tests.txt --use-mirrors" +install: "pip install -q -r requirements_for_tests.txt --use-mirrors" # command to run tests -script: nosetests && behave && ./pep-it.sh +script: + - nosetests --with-coverage --cover-inclusive + - behave + - ./pep-it.sh +after_script: + - coveralls branches: except: - master diff --git a/requirements_for_tests.txt b/requirements_for_tests.txt index 3b608b06..3334732d 100644 --- a/requirements_for_tests.txt +++ b/requirements_for_tests.txt @@ -2,6 +2,7 @@ argcomplete==0.4.0 behave==1.2.2 coverage==3.6 +coveralls mock==1.0.1 nose==1.3.0 pep8==1.4.5