summaryrefslogtreecommitdiffstats
path: root/scripts/BuildDemos.py
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2015-09-14 10:37:44 +0300
committerTeemu Suo-Anttila <teemusa@vaadin.com>2015-09-14 10:38:26 +0300
commit47fe6d931ddd550d35ab87d8a38eed4f3e8c7fff (patch)
tree27dca0b0b07e2cff137f440e101f54326c275542 /scripts/BuildDemos.py
parentcd1d8ba342828fae87c8082f66e6f81b11db701c (diff)
downloadvaadin-framework-47fe6d931ddd550d35ab87d8a38eed4f3e8c7fff.tar.gz
vaadin-framework-47fe6d931ddd550d35ab87d8a38eed4f3e8c7fff.zip
Add command line parameter for ignoring demos
Change-Id: I84850404ba772ff4dceb1f00f5ddc275fe6f915d
Diffstat (limited to 'scripts/BuildDemos.py')
-rw-r--r--scripts/BuildDemos.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/BuildDemos.py b/scripts/BuildDemos.py
index ac161fc517..451715f3c5 100644
--- a/scripts/BuildDemos.py
+++ b/scripts/BuildDemos.py
@@ -35,9 +35,12 @@ if __name__ == "__main__":
from BuildHelpers import updateRepositories, mavenValidate, copyWarFiles, getLogFile, removeDir, getArgs, mavenInstall, resultPath, readPomFile, parser
from DeployHelpers import deployWar
- # Add command line arguments for staging repos
+ # Add command line argument for staging repos
parser.add_argument("--repo", type=str, help="Staging repository URL", default=None)
+ # Add command line agrument for ignoring failing demos
+ parser.add_argument("--ignore", type=str, help="Ignored demos", default="")
+
args = getArgs()
if hasattr(args, "artifactPath") and args.artifactPath is not None:
version = False
@@ -58,6 +61,7 @@ if __name__ == "__main__":
for version in pomXml.getroot().findall("./{%s}version" % (nameSpace)):
args.version = version.text
demosFailed = False
+ ignoredDemos = args.ignore.split(",")
for demo in demos:
print("Validating demo %s" % (demo))
@@ -76,7 +80,8 @@ if __name__ == "__main__":
print("%s demo validation succeeded!" % (demo))
except Exception as e:
print("%s demo validation failed: %s" % (demo, e))
- demosFailed = True
+ if demo not in ignoredDemos:
+ demosFailed = True
removeDir(demo)
print("")
if demosFailed: