aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorGraham Krizek <gkrizek@nodesource.com>2019-01-24 21:28:27 -0600
committerGraham Krizek <gkrizek@nodesource.com>2019-02-21 11:11:02 -0600
commit8b8d8eeae9e8feff6d78420ee172c820ccef9db1 (patch)
treee4d31008763b84bd9e832a9a3315619307e839c6 /contrib
parentb853746d4a8a8ac0d3f535538e2ac4e3cc14e1c7 (diff)
Remove travis_wait from lint script
Also adding progress logging to verify-commits.py script to prevent Travis from timing out
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/verify-commits/verify-commits.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/verify-commits/verify-commits.py b/contrib/verify-commits/verify-commits.py
index 6bbed01073..255ce75092 100755
--- a/contrib/verify-commits/verify-commits.py
+++ b/contrib/verify-commits/verify-commits.py
@@ -5,6 +5,7 @@
"""Verify commits against a trusted keys list."""
import argparse
import hashlib
+import logging
import os
import subprocess
import sys
@@ -66,6 +67,11 @@ def tree_sha512sum(commit='HEAD'):
return overall.hexdigest()
def main():
+
+ # Enable debug logging if running in CI
+ if 'CI' in os.environ and os.environ['CI'].lower() == "true":
+ logging.getLogger().setLevel(logging.DEBUG)
+
# Parse arguments
parser = argparse.ArgumentParser(usage='%(prog)s [options] [commit id]')
parser.add_argument('--disable-tree-check', action='store_false', dest='verify_tree', help='disable SHA-512 tree check')
@@ -95,6 +101,10 @@ def main():
# Iterate through commits
while True:
+
+ # Log a message to prevent Travis from timing out
+ logging.debug("verify-commits: [in-progress] processing commit {}".format(current_commit[:8]))
+
if current_commit == verified_root:
print('There is a valid path from "{}" to {} where all commits are signed!'.format(initial_commit, verified_root))
sys.exit(0)