Add Barrier build test
This commit is contained in:
1 parent
319432bc61
commit
a3d739c472
2 files changed
+27
No files matched your search
@@ -0,0 +1,15 @@
|
||||
class B < Builder
|
||||
def run(*args)
|
||||
puts "B:#{@target}"
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
env do |env|
|
||||
env.add_builder(B)
|
||||
env.B("one")
|
||||
env.B("two")
|
||||
env.B("three")
|
||||
env.Barrier(:bar, %w[two three])
|
||||
env.depends("one", :bar)
|
||||
end
|
||||
Reference in new issue
Block a user