#coding=UTF-8 import argparse, cgi parser = argparse.ArgumentParser(description="Post-publish report generator") parser.add_argument("version", type=str, help="Vaadin version that was just built") parser.add_argument("buildResultUrl", type=str, help="URL for the build result page") args = parser.parse_args() (major, minor, maintenance) = args.version.split(".", 2) prerelease = "." in maintenance if prerelease: maintenance = maintenance.split('.')[0] content = """ """ if not prerelease: content += "".format(maj=major, min=minor, ver=args.version) else: content += "".format(maj=major, min=minor, main=maintenance, ver=args.version) content += """ """ if not prerelease: content += '' content += """ """.format(version=args.version) if not prerelease: content += '' content += """
Check {ver} is published to vaadin.com/download
Check {ver} is published as prerelease to vaadin.com/download
Verify Latest Vaadin 7:
Verify Vaadin 7 Version List:
Verify Latest Vaadin 7.5:
Verify Latest Vaadin 7.6:
Verify Latest Vaadin 6:
Verify Latest Vaadin 7 Prerelease:
Set latest version to default
Verify uploaded to test.vaadin.com
Verify tags pushed to GitHub
Verify API version list updated
Batch update tickets in Trac
Publish result page (See test results, pin and tag build and dependencies)
""".format(url=args.buildResultUrl, version=args.version) f = open("result/report.html", 'w') f.write(content)