Permalink
Browse files

Scripts: Summary debugging info added

  • Loading branch information...
pbeckingham committed May 13, 2018
1 parent 57ba5f3 commit 21b422efca319bdbbe7f788923689d63a7e7e5c3
Showing with 4 additions and 1 deletion.
  1. +1 −1 cmake/CXXSniffer.cmake
  2. +3 −0 scripts/summary
@@ -17,7 +17,7 @@ elseif (_HAS_GNU0X)
message (WARNING "Enabling -std=gnu++0x draft compile flag. Your compiler does not support the standard '-std=c++11' option. Consider upgrading.")
set (_CXX11_FLAGS "-std=gnu++0x")
else (_HAS_CXX11)
message (FATAL_ERROR "C++11 support missing. Try upgrading your C++ compiler. If you have a good reason for using an outdated compiler, please let us know at support@taskwarrior.org.")
message (FATAL_ERROR "C++11 support missing. Try upgrading your C++ compiler. If you have a good reason for using an outdated compiler, please let us know at support@gothenburgbitfactory.org.")
endif (_HAS_CXX11)

if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
@@ -178,6 +178,7 @@ def findLatestCommit(commit_dir):
for commit in os.listdir(commit_dir):
if len(commit) == 40: # Length of a SHA1.
commit_json_file = os.path.join(commit_dir, commit, 'commit.json')
print('# findLatestCommit commit_json_file {}'.format(commit_json_file))
with open(commit_json_file) as fh:
commit_json = json.load(fh)

@@ -237,6 +238,7 @@ def summarizeCommit(commit):
# Create the index.html fiŀe.
def writeReport(base_dir):
report_file = '{}/index.html'.format(base_dir)
print('# writeReport report_file {}'.format(report_file))
with open(report_file, 'w') as report:
report.write(template_header)

@@ -267,6 +269,7 @@ def writeReport(base_dir):
################################################################################
# Publish the report file.
def publishReport(config, report_file):
print('# publishReport report_file {}'.format(report_file))
publish_event = flod.Event()
publish_event.header('from', report_file)
publish_event.header('to', os.path.join(config.get('report.destination'), 'index.html'))

0 comments on commit 21b422e

Please sign in to comment.