aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2015-07-10 14:24:45 +0300
committerTeemu Suo-Anttila <teemusa@vaadin.com>2015-07-10 14:24:45 +0300
commit0c2e76d612f63691205aa21625890df3dc6e72f5 (patch)
tree2abdfdb69915f42c0989973bc50dae58e66d082f /scripts
parentba678430d656a7bfad0582ac4f42c9107a7ae556 (diff)
downloadvaadin-framework-0c2e76d612f63691205aa21625890df3dc6e72f5.tar.gz
vaadin-framework-0c2e76d612f63691205aa21625890df3dc6e72f5.zip
Add @since check to build report generator
Change-Id: I708974d6706d5d0809f71b6ddf60cb3a50e31be7
Diffstat (limited to 'scripts')
-rw-r--r--scripts/GenerateBuildReport.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/scripts/GenerateBuildReport.py b/scripts/GenerateBuildReport.py
index 2cf156398d..8ee2472133 100644
--- a/scripts/GenerateBuildReport.py
+++ b/scripts/GenerateBuildReport.py
@@ -1,7 +1,7 @@
#coding=UTF-8
from BuildDemos import demos
-import argparse
+import argparse, subprocess
parser = argparse.ArgumentParser(description="Build report generator")
parser.add_argument("version", type=str, help="Vaadin version that was just built")
@@ -20,9 +20,21 @@ content = """<html>
<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>
-<tr><td>Try demos<ul>
""".format(version=args.version)
+try:
+ p1 = subprocess.Popen(['find', '.', '-name', '*.java'], stdout=subprocess.PIPE)
+ p2 = subprocess.Popen(['xargs', 'egrep', '@since ?$'], stdin=p1.stdout, stdout=subprocess.PIPE)
+ missing = subprocess.check_output(['grep', '-v', 'tests'], stdin=p2.stdout)
+ content += "<tr><td>Empty @since:<br>\n<pre>%s</pre></td></tr>\n" % (missing)
+except subprocess.CalledProcessError as e:
+ if e.returncode == 1:
+ content += "<tr><td>No empty @since</td></tr>\n"
+ else:
+ raise e
+
+content += "<tr><td>Try demos<ul>"
+
for demo in demos:
content += "<li><a href='{url}/{demoName}-{version}'>{demoName}</a></li>\n".format(url=args.deployUrl, demoName=demo, version=args.version)