commit | 497e15190467f5411c229493f515eff60b5cdef7 | [log] [tgz] |
---|---|---|
author | Ravi Mistry <rmistry@google.com> | Fri Nov 12 14:33:23 2021 |
committer | Ravi Mistry <rmistry@chromium.org> | Fri Nov 12 14:35:24 2021 |
tree | fa3d50a227abfbf12fbd430a7f2f7c8e0e6e2afc | |
parent | 7e861eac2dead05539fb022eca68d677296f3928 [diff] |
Fully qualify hosts in rubberStamperHosts Similar to the fully qualified hosts in chops-banner.ts Bug: chromium:1269739 Change-Id: I2366bc1251ab45b6747111a312d8f48e6bd20ec2
This plugin must be placed inside the Gerrit plugins directory:
git clone --recurse-submodules https://gerrit.googlesource.com/gerrit cd gerrit/plugins git clone https://chromium.googlesource.com/infra/gerrit-plugins/chromium-behavior
For running TypeScript unit tests execute:
bazel test --test_output=all //plugins/chromium-behavior/web:karma_test
For checking or fixing eslint formatter problems run:
bazel test //plugins/chromium-behavior/web:lint_test bazel run //plugins/chromium-behavior/web:lint_bin -- \ --fix "$(pwd)/plugins/chromium-behavior/web"
For testing the plugin with Gerrit FE Dev Helper build the JavaScript bundle and copy it to the plugins/chromium-behavior
folder:
bazel build //plugins/chromium-behavior/web:chromium-behavior cp -f bazel-bin/plugins/chromium-behavior/web/chromium-behavior.js plugins/
Start polygerit-ui server:
./polygerrit-ui/run-server.sh --plugins="plugins"
and let the Dev Helper redirect from .+/plugins/chromium-behavior/static/chromium-behavior.js
to http://localhost:8081/plugins/chromium-behavior.js
.