Skip to content

Commit

Permalink
Merge pull request #197 from gradle/bmuskalla/bazelCommand
Browse files Browse the repository at this point in the history
Allow scenarios to use different commands than `build`
  • Loading branch information
Benjamin Muskalla authored Mar 30, 2020
2 parents 2f09a94 + 5d18def commit 5976852
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ You can compare Gradle against Bazel, Buck, and Maven by specifying their equiva
tasks = ["assemble"]

bazel {
targets = ["//some/target"]
targets = ["build" "//some/target"]
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ void doRun(BazelScenarioDefinition scenario, InvocationSettings settings, Consum

List<String> commandLine = new ArrayList<>();
commandLine.add(bazelExe);
commandLine.add("build");
commandLine.addAll(targets);

ScenarioContext scenarioContext = ScenarioContext.from(settings, scenario);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ buildTarget {
buildTarget {
tasks = ["some:assemble"]
bazel {
targets = [":hello"]
targets = ["build", ":hello"]
}
}
"""
Expand Down Expand Up @@ -1254,7 +1254,7 @@ help {
buildTarget {
tasks = ["help"]
bazel {
targets = "//some/target"
targets = ["build", "//some/target"]
}
}
"""
Expand All @@ -1274,7 +1274,7 @@ buildTarget {
buildTarget {
tasks = ["help"]
bazel {
targets = "//some/target"
targets = ["build", "//some/target"]
}
}
"""
Expand Down

0 comments on commit 5976852

Please sign in to comment.