Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add ENV for turning off coverage

  • Loading branch information...
commit 3b54005310b9290fcb7f771a8f8e7c916d5fb7cf 1 parent 57828b6
@tswicegood tswicegood authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 armstrong/dev/tasks/__init__.py
View
8 armstrong/dev/tasks/__init__.py
@@ -50,7 +50,11 @@ def inner(*args, **kwargs):
def html_coverage_report(directory="./coverage"):
# This relies on this being run from within a directory named the same as
# the repository on GitHub. It's fragile, but for our purposes, it works.
- if coverage:
+ run_coverage = coverage
+ if run_coverage and os.environ.get("SKIP_COVERAGE", False):
+ run_coverage = False
+
+ if run_coverage:
local('rm -rf ' + directory)
package = __import__('site')
base_path = dirname(package.__file__) + '/site-packages/' + get_full_name().replace('.', '/')
@@ -61,7 +65,7 @@ def html_coverage_report(directory="./coverage"):
cov.start()
yield
- if coverage:
+ if run_coverage:
cov.stop()
cov.html_report(directory=directory)
else:
Please sign in to comment.
Something went wrong with that request. Please try again.