From bdb5302dba4c71027f9fc3aee1f48f0ca91d353c Mon Sep 17 00:00:00 2001 From: Kasper Nilsson Date: Thu, 25 May 2017 18:27:14 -0700 Subject: [PATCH] Use downloaded bower components in polylint_test.sh Previously, polylint_test.sh used the local copies of bower components that the PolyGerrit project has in its repo to do local development for testing. This was causing an issue, as these were not found on the CI system. This makes the test take longer, but makes it standalone enough to function on CI. Change-Id: I21f3ed67ade1af352b2ccf21db6644b2bd1d2fee --- polygerrit-ui/app/BUILD | 2 +- polygerrit-ui/app/polylint_test.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/polygerrit-ui/app/BUILD b/polygerrit-ui/app/BUILD index b2ce8f05c3..79ede8f8bb 100644 --- a/polygerrit-ui/app/BUILD +++ b/polygerrit-ui/app/BUILD @@ -189,7 +189,7 @@ sh_test( srcs = ["polylint_test.sh"], data = [ ":pg_code", - ":bower_components", + "//polygerrit-ui:polygerrit_components.bower_components.zip", ], # Should not run sandboxed. tags = [ diff --git a/polygerrit-ui/app/polylint_test.sh b/polygerrit-ui/app/polylint_test.sh index 9f136a6655..4bd1600388 100755 --- a/polygerrit-ui/app/polylint_test.sh +++ b/polygerrit-ui/app/polylint_test.sh @@ -15,4 +15,6 @@ if [[ -z "$polylint_bin" ]]; then exit 1 fi +unzip polygerrit-ui/polygerrit_components.bower_components.zip -d polygerrit-ui/app + ${polylint_bin} --root polygerrit-ui/app --input elements/gr-app.html