blob: 0a9078b37c6b0586734fb0426be4b75789e8835e [file] [log] [blame]
#!/bin/bash -xe
cd gerrit
bazelisk version
if ([ "$TARGET_BRANCH" == "master" ] || \
[ "$TARGET_BRANCH" == "stable-3.2" ] || \
[ "$TARGET_BRANCH" == "stable-3.1" ] || \
[ "$TARGET_BRANCH" == "stable-3.0" ] || \
[ "$TARGET_BRANCH" == "stable-2.16" ]) \
&& git show --diff-filter=AM --name-only --pretty="" HEAD | grep polygerrit-ui
then
echo 'Running PolyGerrit lint check...'
. set-java.sh 8
java -fullversion
bazelisk test //polygerrit-ui/app:lint_test --test_output errors
bazelisk test //polygerrit-ui/app:polylint_test --test_output errors
fi