Merge branch 'stable-3.1' * stable-3.1: Set bazlets to latest stable-3.1 Documentation: Remove bazel issue Documentation: Refactor to match other plugin documentation Documentation: Add missing plugin standalone and in-tree testing Upgrade bazlets to latest stable-2.16 Change-Id: I7de2a9247c84d3044e104aa2ad6f83cfacd99dca
diff --git a/WORKSPACE b/WORKSPACE index 22f0515..95ad98a 100644 --- a/WORKSPACE +++ b/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "fbe2b2fd07c95d752dced6b8624c9d5a08e8c6c6", + commit = "968b97fa03a9d2afd760f2e8ede3d5643da390d2", #local_path = "/home/<user>/projects/bazlets", )
diff --git a/src/main/resources/Documentation/build.md b/src/main/resources/Documentation/build.md index 213ebe6..ebf028a 100644 --- a/src/main/resources/Documentation/build.md +++ b/src/main/resources/Documentation/build.md
@@ -35,6 +35,12 @@ bazel-bin/lib@PLUGIN@__plugin-src.jar ``` +To execute the tests run: + +``` + bazel test //... +``` + This project can be imported into the Eclipse IDE: ``` @@ -50,21 +56,18 @@ bazel build plugins/@PLUGIN@ ``` -Note that due to a [known issue in Bazel][bazelissue], if the plugin -has previously been built in standalone mode, it is necessary to clean -the workspace before building in-tree: - -``` - cd plugins/@PLUGIN@ - bazel clean --expunge -``` - The output is created in ``` bazel-bin/plugins/@PLUGIN@/@PLUGIN@.jar ``` +To execute the tests run: + +``` + bazel test plugins/@PLUGIN@:@PLUGIN@_tests +``` + This project can be imported into the Eclipse IDE. Add the plugin name to the `CUSTOM_PLUGINS` set in Gerrit core in `tools/bzl/plugins.bzl`, and execute: @@ -79,4 +82,3 @@ [Back to @PLUGIN@ documentation index][index] [index]: index.html -[bazelissue]: https://github.com/bazelbuild/bazel/issues/2797