aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/BuildDemos.py
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2016-01-13 12:01:40 +0200
committerTeemu Suo-Anttila <teemusa@vaadin.com>2016-01-13 12:01:40 +0200
commit1147faa895382c1ed64f3334fd6a7ab8e3b550be (patch)
tree9347d291cb3781db47ef7f02a3638af93cb78ab2 /scripts/BuildDemos.py
parent1408272f7736ca1ac0e2114da9221543cb9e2a82 (diff)
downloadvaadin-framework-1147faa895382c1ed64f3334fd6a7ab8e3b550be.tar.gz
vaadin-framework-1147faa895382c1ed64f3334fd6a7ab8e3b550be.zip
Fix demo and archetype build scripts to deploy all wars at once
Change-Id: I5ddf43d0c895404abf2139c847ac805ef08452c8
Diffstat (limited to 'scripts/BuildDemos.py')
-rw-r--r--scripts/BuildDemos.py18
1 files changed, 11 insertions, 7 deletions
diff --git a/scripts/BuildDemos.py b/scripts/BuildDemos.py
index 8b7aaecf30..7099230339 100644
--- a/scripts/BuildDemos.py
+++ b/scripts/BuildDemos.py
@@ -65,6 +65,8 @@ if __name__ == "__main__":
demosFailed = False
ignoredDemos = args.ignore.split(",")
+ wars = []
+
for demo in demos:
print("Validating demo %s" % (demo))
try:
@@ -76,13 +78,7 @@ if __name__ == "__main__":
if hasattr(args, "repo") and args.repo is not None:
updateRepositories(join(resultPath, demo), args.repo)
mavenValidate(demo, logFile=getLogFile(demo))
- resultWars = copyWarFiles(demo)
- for war in resultWars:
- try:
- deployWar(war)
- except Exception as e:
- print("War %s failed to deploy: %s" % (war, e))
- demosFailed = True
+ wars.extend(copyWarFiles(demo))
print("%s demo validation succeeded!" % (demo))
except Exception as e:
print("%s demo validation failed: %s" % (demo, e))
@@ -97,5 +93,13 @@ if __name__ == "__main__":
except:
pass
print("")
+
+ for war in wars:
+ try:
+ deployWar(war)
+ except Exception as e:
+ print("War %s failed to deploy: %s" % (war, e))
+ demosFailed = True
+
if demosFailed:
sys.exit(1)