Skip to content

Commit

Permalink
[build] create single command for periodic file upudates
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Dec 21, 2023
1 parent a9ef1e6 commit 9c0738d
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,7 @@ task remote_client: ['//java/src/org/openqa/selenium/remote']
task remote_server: ['//java/src/org/openqa/selenium/remote/server']
task safari: ['//java/src/org/openqa/selenium/safari']
task selenium: ['//java/src/org/openqa/selenium:core']
task support: [
'//java/src/org/openqa/selenium/support'
]
task support: ['//java/src/org/openqa/selenium/support']

desc 'Build the standalone server'
task 'selenium-server-standalone' => '//java/src/org/openqa/selenium/grid:executable-grid'
Expand Down Expand Up @@ -203,7 +201,7 @@ task test_support: [
'//java/test/org/openqa/selenium/support:large-tests:run'
]

task test_java_webdriver do
task :test_java_webdriver do
if SeleniumRake::Checks.windows?
Rake::Task['test_ie'].invoke
elsif SeleniumRake::Checks.chrome?
Expand Down Expand Up @@ -756,6 +754,15 @@ namespace :all do
Rake::Task['dotnet:release'].invoke(args)
Rake::Task['node:release'].invoke(args)
end

desc 'File updates for versions and metadata'
task :update, [:channel] do |_task, arguments|
args = arguments[:channel] ? ['--', "--chrome_channel=#{arguments[:channel].capitalize}"] : []
Bazel.execute('run', args, '//scripts:pinned_browsers')
Bazel.execute('run', args, '//scripts:update_cdp')
Rake::Task['authors'].invoke
Rake::Task['copyright:update'].invoke
end
end

at_exit do
Expand Down

0 comments on commit 9c0738d

Please sign in to comment.