diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-06-15 12:31:07 +0300 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2015-07-07 10:16:00 +0000 |
commit | ff6d55163c13ba0cd764b209dc1252e2992cf2d8 (patch) | |
tree | da89632abc7f9d08d59eda1337d597e38be76720 /scripts/BuildDemos.py | |
parent | 771da038480192a2d49a3672a33850ec3f8e3269 (diff) | |
download | vaadin-framework-ff6d55163c13ba0cd764b209dc1252e2992cf2d8.tar.gz vaadin-framework-ff6d55163c13ba0cd764b209dc1252e2992cf2d8.zip |
Add --maven parameter to add mvn commandline parameters
Also adds a --teamcity flag, planned future functionality to add
supplied jar dependencies to local maven repo, and flags for setting
wildfly autodeployment parameters (url, user, password)
Change-Id: I6690cda0d3bfd18d665ffbc61b8502f91f9fd475
Diffstat (limited to 'scripts/BuildDemos.py')
-rw-r--r-- | scripts/BuildDemos.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/scripts/BuildDemos.py b/scripts/BuildDemos.py index 396863350d..6d8445b4d1 100644 --- a/scripts/BuildDemos.py +++ b/scripts/BuildDemos.py @@ -15,7 +15,7 @@ try: except: print("BuildDemos depends on gitpython. Install it with `pip install gitpython`") sys.exit(1) -from BuildHelpers import updateRepositories, mavenValidate, copyWarFiles, getLogFile, removeDir +from BuildHelpers import updateRepositories, mavenValidate, copyWarFiles, getLogFile, removeDir, getArgs from DeployHelpers import deployWar # Validated demos. name -> git url @@ -23,7 +23,6 @@ demos = { "dashboard" : "https://github.com/vaadin/dashboard-demo.git", "parking" : "https://github.com/vaadin/parking-demo.git", "addressbook" : "https://github.com/vaadin/addressbook.git", - "confirmdialog" : "https://github.com/samie/Vaadin-ConfirmDialog.git", "grid-gwt" : "https://github.com/vaadin/grid-gwt.git" } @@ -31,6 +30,11 @@ def checkout(folder, url): Repo.clone_from(url, folder) if __name__ == "__main__": + if getArgs().teamcity: + print("Add dependency jars from TeamCity here") + + demosFailed = False + for demo in demos: print("Validating demo %s" % (demo)) try: @@ -43,8 +47,12 @@ if __name__ == "__main__": deployWar(war) except Exception as e: print("War %s failed to deploy: %s" % (war, e)) + demosFailed = True print("%s demo validation succeeded!" % (demo)) - except: - print("%s demo validation failed" % (demo)) + except Exception as e: + print("%s demo validation failed: %s" % (demo, e)) + demosFailed = True removeDir(demo) print("") + if demosFailed: + sys.exit(1) |