| load("//tools/bzl:junit.bzl", "junit_tests") |
| load( |
| "//tools/bzl:plugin.bzl", |
| "PLUGIN_DEPS", |
| "PLUGIN_TEST_DEPS", |
| "gerrit_plugin", |
| ) |
| |
| plugin_name = "remote-gerrit-account-cache" |
| |
| gerrit_plugin( |
| name = plugin_name, |
| srcs = glob(["src/main/java/**/*.java"]), |
| javacopts = [ |
| "-Werror", |
| "-Xlint:all", |
| "-Xlint:-classfile", |
| "-Xlint:-processing", |
| ], |
| manifest_entries = [ |
| "Gerrit-PluginName: " + plugin_name, |
| "Implementation-Title: remote-gerrit-account-cache Plugin", |
| ], |
| ) |
| |
| sh_test( |
| name = "always_pass_test", |
| size = "small", |
| srcs = ["src/test/always_pass_test.sh"], |
| ) |
| |
| sh_test( |
| name = "docker-tests", |
| size = "medium", |
| srcs = ["test/docker/run.sh"], |
| args = [ |
| "--remote-gerrit-account-cache-jar", |
| "$(location :remote-gerrit-account-cache)", |
| ], |
| data = [plugin_name] + glob(["test/**"]), |
| local = True, |
| tags = ["docker"], |
| ) |