summaryrefslogtreecommitdiffstats
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-23 15:33:55 +0300
commit608d8d19f8eb177518ee62073a751b43aca1af3a (patch)
treee18c689bca74f3be4487e9308a6e6584ea086bcf
parent7e147b62e5083288dc1a0a5494aec3be8219a2b0 (diff)
downloadvaadin-framework-608d8d19f8eb177518ee62073a751b43aca1af3a.tar.gz
vaadin-framework-608d8d19f8eb177518ee62073a751b43aca1af3a.zip
Add command line parameter for ignoring demos
Change-Id: I84850404ba772ff4dceb1f00f5ddc275fe6f915d
-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: