diff options
Diffstat (limited to 'benchmarks/BUILD')
-rw-r--r-- | benchmarks/BUILD | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/benchmarks/BUILD b/benchmarks/BUILD index 43614cf5d..389351210 100644 --- a/benchmarks/BUILD +++ b/benchmarks/BUILD @@ -1,12 +1,23 @@ package(licenses = ["notice"]) +config_setting( + name = "gcloud_rule", + values = { + "define": "gcloud=off", + }, +) + py_binary( name = "benchmarks", + testonly = 1, srcs = ["run.py"], - data = [ - "//tools/images:ubuntu1604", - "//tools/images:zone", - ], + data = select({ + ":gcloud_rule": [], + "//conditions:default": [ + "//tools/vm:ubuntu1604", + "//tools/vm:zone", + ], + }), main = "run.py", python_version = "PY3", srcs_version = "PY3", |