Skip to content

Commit 5ea5ed2

Browse files
authored
Merge pull request #61 from sommersoft/fail_no_more
Further Debugging Travis Failures
2 parents 216e3e8 + 2f52440 commit 5ea5ed2

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# TravisCI config for running Adabot on autopilot.
2-
dist: trusty
2+
dist: xenial
33
language: python
44
python:
55
- "3.6"

adabot/circuitpython_libraries.py

+10
Original file line numberDiff line numberDiff line change
@@ -1109,12 +1109,18 @@ def print_issue_overview(*insights):
11091109
github_token = False
11101110

11111111
if __name__ == "__main__":
1112+
startup_message = ["Running CircuitPython Library checks...",
1113+
"Report Date: {}".format(datetime.datetime.now().strftime("%d %B %Y, %I:%M%p"))
1114+
]
11121115
cmd_line_args = cmd_line_parser.parse_args()
11131116
error_depth = cmd_line_args.error_depth
1117+
startup_message.append(" - Depth for listing libraries with errors: {}".format(error_depth))
11141118
verbosity = cmd_line_args.verbose
11151119
github_token = cmd_line_args.gh_token
1120+
startup_message.append(" - Prompts for the GitHub Token are {}.".format(("enabled" if github_token else "disabled")))
11161121
if cmd_line_args.output_file:
11171122
output_filename = cmd_line_args.output_file
1123+
startup_message.append(" - Report output will be saved to: {}".format(output_filename))
11181124
if cmd_line_args.validator:
11191125
validators = []
11201126
for func in cmd_line_args.validator.split(","):
@@ -1127,7 +1133,11 @@ def print_issue_overview(*insights):
11271133
"Available validators are: {1}".format(func.strip(),
11281134
", ".join([vals for vals in sys.modules[__name__].__dict__ if vals.startswith("validate")])))
11291135
sys.exit()
1136+
startup_message.append(" - Only these selected validators will run: {}".format(", ".join(name.__name__ for name in validators)))
11301137
try:
1138+
for message in startup_message:
1139+
output_handler(message)
1140+
output_handler()
11311141
run_library_checks()
11321142
except:
11331143
if output_filename is not None:

0 commit comments

Comments
 (0)