[tor-commits] [bridgedb/develop] Separate coverage commands in Makefile so that .travis.yml can use them.
isis at torproject.org
isis at torproject.org
Thu May 1 01:02:42 UTC 2014
commit 662a07ea0fd04e4a89ebb8da18f3e5e3a2f0be16
Author: Isis Lovecruft <isis at torproject.org>
Date: Wed Apr 30 22:18:01 2014 +0000
Separate coverage commands in Makefile so that .travis.yml can use them.
Because we only want the first two commands to run on TravisCI. This changes
nothing for the `make coverage` directive, it'll still function in the same
way.
---
Makefile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 22a231e..aa594c1 100644
--- a/Makefile
+++ b/Makefile
@@ -43,7 +43,11 @@ clean:
-rm -rf lib/bridgedb.egg-info
-rm -rf _trial_temp
-coverage:
+coverage-test:
-coverage run --rcfile=".coveragerc" $(TRIAL) ./lib/bridgedb/test/test_*.py
-coverage report --rcfile=".coveragerc"
+
+coverage-html:
-coverage html --rcfile=".coveragerc"
+
+coverage: coverage-test coverage-html
More information about the tor-commits
mailing list