summaryrefslogtreecommitdiffstats
path: root/scripts/GenerateBuildReport.py
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2015-07-08 12:42:24 +0300
committerTeemu Suo-Anttila <teemusa@vaadin.com>2015-07-08 12:42:24 +0300
commita5a007ed9f03dac242ba9af6ec0974c256d6a289 (patch)
tree5a37a3dd70d58e56b64baccb50ad8a81d796c611 /scripts/GenerateBuildReport.py
parentd1e6bd52d0ff16890f64e01064fbd82e514aed05 (diff)
downloadvaadin-framework-a5a007ed9f03dac242ba9af6ec0974c256d6a289.tar.gz
vaadin-framework-a5a007ed9f03dac242ba9af6ec0974c256d6a289.zip
Add build report generator script
Change-Id: I4145ba4dc91bc980110d63ad4284bbedb1219bc3
Diffstat (limited to 'scripts/GenerateBuildReport.py')
-rw-r--r--scripts/GenerateBuildReport.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/scripts/GenerateBuildReport.py b/scripts/GenerateBuildReport.py
new file mode 100644
index 0000000000..6ea03275c2
--- /dev/null
+++ b/scripts/GenerateBuildReport.py
@@ -0,0 +1,31 @@
+#coding=UTF-8
+
+from BuildDemos import demos
+import argparse
+
+parser = argparse.ArgumentParser(description="Build report generator")
+parser.add_argument("version", type=str, help="Vaadin version that was just built")
+parser.add_argument("deployUrl", type=str, help="Base url of the deployment server")
+
+args = parser.parse_args()
+
+content = """<html>
+<head></head>
+<body>
+<table>
+<tr><td><a href="https://dev.vaadin.com/query?status=closed&component=Core+Framework&resolution=fixed&milestone=Vaadin {version}&col=id&col=summary&col=component&col=milestone&col=status&col=type">Closed tickets with milestone {version}</a></td></tr>
+<tr><td><a href="https://dev.vaadin.com/query?status=pending-release&component=Core+Framework&resolution=fixed&milestone=Vaadin {version}&col=id&col=summary&col=component&col=milestone&col=status&col=type">Pending-release tickets with milestone {version}</a></td></tr>
+<tr><td><a href="https://dev.vaadin.com/query?status=pending-release&milestone=">Pending-release tickets without milestone</a></td></tr>
+<tr><td><a href="apidiff/changes.html">API Diff</a></td></tr>
+<tr><td><a href="release-notes/release-notes.html">Release Notes</a></td></tr>
+""".format(version=args.version)
+
+for demo in demos:
+ content += "<tr><td><a href='{url}/{demoName}-{version}'>{demoName}</a></td></tr>\n".format(url=args.deployUrl, demoName=demo, version=args.version)
+
+content += """</table>
+</body>
+</html>"""
+
+f = open("result/report.html", 'w')
+f.write(content)