diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/BuildDemos.py | 17 | ||||
-rw-r--r-- | scripts/GenerateBuildReport.py | 31 |
2 files changed, 41 insertions, 7 deletions
diff --git a/scripts/BuildDemos.py b/scripts/BuildDemos.py index 16f6990d4c..9306153b9a 100644 --- a/scripts/BuildDemos.py +++ b/scripts/BuildDemos.py @@ -10,13 +10,6 @@ # Deploy depends on .deployUrl and .deployCredentials files in home folder import sys, os -try: - from git import Repo -except: - print("BuildDemos depends on gitpython. Install it with `pip install gitpython`") - sys.exit(1) -from BuildHelpers import updateRepositories, mavenValidate, copyWarFiles, getLogFile, removeDir, getArgs, mavenInstall, resultPath -from DeployHelpers import deployWar from os.path import join, isfile from fnmatch import fnmatch @@ -32,6 +25,16 @@ def checkout(folder, url): Repo.clone_from(url, join(resultPath, folder)) if __name__ == "__main__": + # Do imports. + try: + from git import Repo + except: + print("BuildDemos depends on gitpython. Install it with `pip install gitpython`") + sys.exit(1) + from BuildHelpers import updateRepositories, mavenValidate, copyWarFiles, getLogFile, removeDir, getArgs, mavenInstall, resultPath + from DeployHelpers import deployWar + + if hasattr(getArgs(), "artifactPath") and getArgs().artifactPath is not None: basePath = getArgs().artifactPath poms = [] 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) |