summaryrefslogtreecommitdiffstats
path: root/scripts/BuildDemos.py
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2016-04-19 15:14:53 +0300
committerVaadin Code Review <review@vaadin.com>2016-04-19 12:26:46 +0000
commit9697eebd6ff74393da03ee881c04d2c3b7e41b88 (patch)
tree59a24959bbf76d66eec67aae7e6e1b13b17eaea1 /scripts/BuildDemos.py
parent4e74fe12a21670cd4043e868bc8599099d7cc4a6 (diff)
downloadvaadin-framework-9697eebd6ff74393da03ee881c04d2c3b7e41b88.tar.gz
vaadin-framework-9697eebd6ff74393da03ee881c04d2c3b7e41b88.zip
Add plugin repository parameter to validation scripts
Change-Id: I94888fd19e2bf01f34ef57230bd3e9df7fb3d8eb
Diffstat (limited to 'scripts/BuildDemos.py')
-rw-r--r--scripts/BuildDemos.py29
1 files changed, 4 insertions, 25 deletions
diff --git a/scripts/BuildDemos.py b/scripts/BuildDemos.py
index 7099230339..59cfe88a81 100644
--- a/scripts/BuildDemos.py
+++ b/scripts/BuildDemos.py
@@ -36,32 +36,9 @@ if __name__ == "__main__":
sys.exit(1)
from BuildHelpers import updateRepositories, mavenValidate, copyWarFiles, getLogFile, removeDir, getArgs, mavenInstall, resultPath, readPomFile, parser
from DeployHelpers import deployWar
-
- # 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
- basePath = args.artifactPath
- poms = []
- for root, dirs, files in os.walk(basePath):
- for name in files:
- if fnmatch(name, "*.pom"):
- poms.append(join(root, name))
- for pom in poms:
- jarFile = pom.replace(".pom", ".jar")
- if isfile(jarFile):
- mavenInstall(pom, jarFile)
- else:
- mavenInstall(pom)
- if "vaadin-server" in pom:
- pomXml, nameSpace = readPomFile(pom)
- for version in pomXml.getroot().findall("./{%s}version" % (nameSpace)):
- args.version = version.text
demosFailed = False
ignoredDemos = args.ignore.split(",")
@@ -75,8 +52,10 @@ if __name__ == "__main__":
checkout(demo, repo[0], repo[1])
else:
checkout(demo, repo)
- if hasattr(args, "repo") and args.repo is not None:
- updateRepositories(join(resultPath, demo), args.repo)
+ if hasattr(args, "fwRepo") and args.fwRepo is not None:
+ updateRepositories(join(resultPath, demo), args.fwRepo)
+ if hasattr(args, "pluginRepo") and args.pluginRepo is not None:
+ updateRepositories(join(resultPath, demo), args.pluginRepo, postfix="plugin")
mavenValidate(demo, logFile=getLogFile(demo))
wars.extend(copyWarFiles(demo))
print("%s demo validation succeeded!" % (demo))