Skip to content

Commit

Permalink
Merge pull request #61 from sommersoft/fail_no_more
Browse files Browse the repository at this point in the history
Further Debugging Travis Failures
  • Loading branch information
kattni authored Feb 6, 2019
2 parents 216e3e8 + 2f52440 commit 5ea5ed2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# TravisCI config for running Adabot on autopilot.
dist: trusty
dist: xenial
language: python
python:
- "3.6"
Expand Down
10 changes: 10 additions & 0 deletions adabot/circuitpython_libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -1109,12 +1109,18 @@ def print_issue_overview(*insights):
github_token = False

if __name__ == "__main__":
startup_message = ["Running CircuitPython Library checks...",
"Report Date: {}".format(datetime.datetime.now().strftime("%d %B %Y, %I:%M%p"))
]
cmd_line_args = cmd_line_parser.parse_args()
error_depth = cmd_line_args.error_depth
startup_message.append(" - Depth for listing libraries with errors: {}".format(error_depth))
verbosity = cmd_line_args.verbose
github_token = cmd_line_args.gh_token
startup_message.append(" - Prompts for the GitHub Token are {}.".format(("enabled" if github_token else "disabled")))
if cmd_line_args.output_file:
output_filename = cmd_line_args.output_file
startup_message.append(" - Report output will be saved to: {}".format(output_filename))
if cmd_line_args.validator:
validators = []
for func in cmd_line_args.validator.split(","):
Expand All @@ -1127,7 +1133,11 @@ def print_issue_overview(*insights):
"Available validators are: {1}".format(func.strip(),
", ".join([vals for vals in sys.modules[__name__].__dict__ if vals.startswith("validate")])))
sys.exit()
startup_message.append(" - Only these selected validators will run: {}".format(", ".join(name.__name__ for name in validators)))
try:
for message in startup_message:
output_handler(message)
output_handler()
run_library_checks()
except:
if output_filename is not None:
Expand Down

0 comments on commit 5ea5ed2

Please sign in to comment.