mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
Store coverage data under var/ tree.
We set the COVERAGE_FILE environment variable which controls the output file path for the .coverage file produced by python-coverage, and also move the mypy coverage file to that location as well.
This commit is contained in:
committed by
Tim Abbott
parent
c454b180e0
commit
b36dfc0395
@@ -149,7 +149,7 @@ if python_files:
|
||||
if args.linecoverage_report:
|
||||
# Move the coverage report to where coveralls will look for it.
|
||||
try:
|
||||
os.rename('var/linecoverage-report/coverage.txt', '.coverage')
|
||||
os.rename('var/linecoverage-report/coverage.txt', 'var/.coverage')
|
||||
except OSError:
|
||||
# maybe mypy crashed; exit with its error code
|
||||
pass
|
||||
|
Reference in New Issue
Block a user