Skip to content

Commit

Permalink
[build] create prepare_release task that builds packages for all lang…
Browse files Browse the repository at this point in the history
…uages
  • Loading branch information
titusfortner committed Dec 7, 2023
1 parent 8e75d5d commit 7647b5f
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ task all: [
:"selenium-java",
'//java/test/org/openqa/selenium/environment:webserver'
]
task all_zip: [:'java-release-zip']
task all_zip: [:'java-release-zip', :'dotnet-release-zip']
task tests: [
'//java/test/org/openqa/selenium/htmlunit:htmlunit',
'//java/test/org/openqa/selenium/firefox:test-synthesized',
Expand Down Expand Up @@ -403,6 +403,26 @@ def read_m2_user_pass
return [user, pass]
end

task :prepare_release do
RELEASE_TARGETS = [
'//java/src/org/openqa/selenium:client-zip',
'//java/src/org/openqa/selenium/grid:server-zip',
'//java/src/org/openqa/selenium/grid:executable-grid',
'//dotnet/src/webdriver:webdriver-pack',
'//dotnet/src/webdriver:webdriver-strongnamed-pack',
'//dotnet/src/support:support-pack',
'//dotnet/src/support:support-strongnamed-pack',
'//javascript/node/selenium-webdriver:selenium-webdriver',
'//py:selenium-wheel',
'//py:selenium-sdist',
]

RELEASE_TARGETS.each do |target|
Bazel::execute('build', ['--config', 'release'], target)
end
Bazel::execute('build', ['--stamp'], '//rb:selenium-webdriver')
end

task 'publish-maven': JAVA_RELEASE_TARGETS do
creds = read_m2_user_pass
JAVA_RELEASE_TARGETS.each do |p|
Expand Down

0 comments on commit 7647b5f

Please sign in to comment.