Force serial hook runs during tests

This commit is contained in:
Chris Kuehl
2018-10-22 09:51:14 -07:00
committed by Chris Kuehl
parent aa50a8cde0
commit 9125439c3a
3 changed files with 13 additions and 3 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ def no_install(prefix, version, additional_dependencies):
def target_concurrency(hook):
if hook['require_serial']:
if hook['require_serial'] or 'PRE_COMMIT_NO_CONCURRENCY' in os.environ:
return 1
else:
# Travis appears to have a bunch of CPUs, but we can't use them all.