From ff9ea37e0c7b7b844cecfbbc46267bdbe5fb9613 Mon Sep 17 00:00:00 2001
From: Job Evers-Meltzer <jobevers@users.noreply.github.com>
Date: Sun, 30 Oct 2016 15:44:45 -0500
Subject: [PATCH] add coverage reporting

---
 packaging/travis/install_dependencies_and_run_tests.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/packaging/travis/install_dependencies_and_run_tests.sh b/packaging/travis/install_dependencies_and_run_tests.sh
index 74ccaaeae..ff1326af9 100755
--- a/packaging/travis/install_dependencies_and_run_tests.sh
+++ b/packaging/travis/install_dependencies_and_run_tests.sh
@@ -38,9 +38,10 @@ rm get-pip.py
 
 pip install -r requirements.txt
 
-pip install mock pylint
-trial tests
-# TODO: submit coverage report to coveralls
+pip install mock pylint coveralls
+# have to do `which trial` instead of simply trial because coverage needs the full path
+coverage run --source=lbrynet `which trial` tests
+coveralls
 
 # Ignoring distutils because: https://github.com/PyCQA/pylint/issues/73
 # TODO: as code quality improves, make pylint be more strict