3
3
$LOAD_PATH. unshift File . expand_path ( "." )
4
4
5
5
require 'rake'
6
+ require 'rake-tasks/bazel'
6
7
require 'rake-tasks/files'
7
8
require 'net/telnet'
8
9
require 'stringio'
@@ -71,14 +72,10 @@ crazy_fun = CrazyFun.new
71
72
#
72
73
# If crazy fun doesn't know how to handle a particular output type ("java_library"
73
74
# in the example above) then it will throw an exception, stopping the build
74
- ExportMappings . new . add_all ( crazy_fun )
75
- FolderMappings . new . add_all ( crazy_fun )
76
75
GccMappings . new . add_all ( crazy_fun )
77
- JavascriptMappings . new . add_all ( crazy_fun )
78
76
JRubyMappings . new . add_all ( crazy_fun )
79
77
PythonMappings . new . add_all ( crazy_fun )
80
78
RakeMappings . new . add_all ( crazy_fun )
81
- RenameMappings . new . add_all ( crazy_fun )
82
79
RubyMappings . new . add_all ( crazy_fun )
83
80
VisualStudioMappings . new . add_all ( crazy_fun )
84
81
@@ -88,7 +85,7 @@ VisualStudioMappings.new.add_all(crazy_fun)
88
85
# need to fall back to prebuilt binaries. The prebuilt binaries are stored in
89
86
# a directory structure identical to that used in the "build" folder, but
90
87
# rooted at one of the following locations:
91
- [ "cpp/prebuilt" , "javascript/firefox-driver/prebuilt" ] . each do |pre |
88
+ [ "cpp/prebuilt" ] . each do |pre |
92
89
crazy_fun . prebuilt_roots << pre
93
90
end
94
91
97
94
# from rake.
98
95
crazy_fun . create_tasks ( Dir [ "common/**/build.desc" ] )
99
96
crazy_fun . create_tasks ( Dir [ "cpp/**/build.desc" ] )
100
- crazy_fun . create_tasks ( Dir [ "javascript/**/build.desc" ] )
101
- crazy_fun . create_tasks ( Dir [ "py/**/build.desc" ] )
102
- crazy_fun . create_tasks ( Dir [ "rake-tasks/**/build.desc" ] )
103
97
crazy_fun . create_tasks ( Dir [ "rb/**/build.desc" ] )
104
- crazy_fun . create_tasks ( Dir [ "third_party/**/build.desc" ] )
105
98
106
- # Buck integration. Loaded after CrazyFun has initialized all the tasks it'll handle.
107
- # This is because the buck integration creates a rule for "//.*"
108
- require 'rake-tasks/buck'
99
+ # If it looks like a bazel target, build it with bazel
100
+ rule /\/ \/ .*/ do |task |
101
+ task . out = Bazel ::execute ( "build" , task . name )
102
+ end
109
103
110
104
# Spoof tasks to get CI working with buck
111
105
task '//java/client/test/org/openqa/selenium/environment/webserver:webserver:uber' => [
@@ -553,7 +547,7 @@ namespace :node do
553
547
task :build do
554
548
sh "bazel build //javascript/node/selenium-webdriver"
555
549
end
556
-
550
+
557
551
task :'dry-run' => [
558
552
"node:build" ,
559
553
] do
0 commit comments