Skip to content

Commit

Permalink
Implementing ability to run (not only buld) bazel targets from crazyfun
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Oct 27, 2019
1 parent 2c7de0a commit 705420d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ task :chrome => [ "//java/client/src/org/openqa/selenium/chrome" ]
task :grid => [ :'selenium-server-standalone' ]
task :ie => [ "//java/client/src/org/openqa/selenium/ie" ]
task :firefox => [ "//java/client/src/org/openqa/selenium/firefox" ]
task :'debug-server' => "//java/client/test/org/openqa/selenium/environment:webserver:run"
task :'debug-server' => "//java/client/test/org/openqa/selenium/environment:appserver:run"
task :remote => [:remote_server, :remote_client]
task :remote_client => ["//java/client/src/org/openqa/selenium/remote"]
task :remote_server => ["//java/server/src/org/openqa/selenium/remote/server"]
Expand Down
5 changes: 5 additions & 0 deletions rake_tasks/bazel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ class << self
def execute(kind, args, target, &block)
verbose = Rake::FileUtilsExt.verbose_flag

if target.end_with?(":run")
kind = "run"
target = target[0, target.length - 4]
end

cmd = %w[bazel] + [kind, target] + (args || [])
puts cmd.join(" ")

Expand Down

0 comments on commit 705420d

Please sign in to comment.