Skip to content
This repository has been archived by the owner on Dec 21, 2020. It is now read-only.

Commit

Permalink
Scripts: Summary debugging info added
Browse files Browse the repository at this point in the history
  • Loading branch information
pbeckingham committed May 13, 2018
1 parent 57ba5f3 commit 21b422e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/CXXSniffer.cmake
Expand Up @@ -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")
Expand Down
3 changes: 3 additions & 0 deletions scripts/summary
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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'))
Expand Down

0 comments on commit 21b422e

Please sign in to comment.