Skip to content

Commit

Permalink
Allow scenarios to use different commands than build
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Muskalla committed Mar 27, 2020
1 parent 2f09a94 commit 5d18def
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 5d18def

Please sign in to comment.