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
This commit is contained in:
Kasper Nilsson
2017-05-25 18:27:14 -07:00
parent e791692339
commit bdb5302dba
2 changed files with 3 additions and 1 deletions

View File

@@ -189,7 +189,7 @@ sh_test(
srcs = ["polylint_test.sh"], srcs = ["polylint_test.sh"],
data = [ data = [
":pg_code", ":pg_code",
":bower_components", "//polygerrit-ui:polygerrit_components.bower_components.zip",
], ],
# Should not run sandboxed. # Should not run sandboxed.
tags = [ tags = [

View File

@@ -15,4 +15,6 @@ if [[ -z "$polylint_bin" ]]; then
exit 1 exit 1
fi fi
unzip polygerrit-ui/polygerrit_components.bower_components.zip -d polygerrit-ui/app
${polylint_bin} --root polygerrit-ui/app --input elements/gr-app.html ${polylint_bin} --root polygerrit-ui/app --input elements/gr-app.html