summaryrefslogtreecommitdiffstats
path: root/scripts/BuildDemos.py
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2015-07-08 12:42:24 +0300
committerTeemu Suo-Anttila <teemusa@vaadin.com>2015-07-08 12:42:24 +0300
commita5a007ed9f03dac242ba9af6ec0974c256d6a289 (patch)
tree5a37a3dd70d58e56b64baccb50ad8a81d796c611 /scripts/BuildDemos.py
parentd1e6bd52d0ff16890f64e01064fbd82e514aed05 (diff)
downloadvaadin-framework-a5a007ed9f03dac242ba9af6ec0974c256d6a289.tar.gz
vaadin-framework-a5a007ed9f03dac242ba9af6ec0974c256d6a289.zip
Add build report generator script
Change-Id: I4145ba4dc91bc980110d63ad4284bbedb1219bc3
Diffstat (limited to 'scripts/BuildDemos.py')
-rw-r--r--scripts/BuildDemos.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/scripts/BuildDemos.py b/scripts/BuildDemos.py
index 16f6990d4c..9306153b9a 100644
--- a/scripts/BuildDemos.py
+++ b/scripts/BuildDemos.py
@@ -10,13 +10,6 @@
# Deploy depends on .deployUrl and .deployCredentials files in home folder
import sys, os
-try:
- from git import Repo
-except:
- print("BuildDemos depends on gitpython. Install it with `pip install gitpython`")
- sys.exit(1)
-from BuildHelpers import updateRepositories, mavenValidate, copyWarFiles, getLogFile, removeDir, getArgs, mavenInstall, resultPath
-from DeployHelpers import deployWar
from os.path import join, isfile
from fnmatch import fnmatch
@@ -32,6 +25,16 @@ def checkout(folder, url):
Repo.clone_from(url, join(resultPath, folder))
if __name__ == "__main__":
+ # Do imports.
+ try:
+ from git import Repo
+ except:
+ print("BuildDemos depends on gitpython. Install it with `pip install gitpython`")
+ sys.exit(1)
+ from BuildHelpers import updateRepositories, mavenValidate, copyWarFiles, getLogFile, removeDir, getArgs, mavenInstall, resultPath
+ from DeployHelpers import deployWar
+
+
if hasattr(getArgs(), "artifactPath") and getArgs().artifactPath is not None:
basePath = getArgs().artifactPath
poms = []