homebrew-core/Formula/flow.rb
2015-01-29 14:33:42 +00:00

29 lines
811 B
Ruby

require "formula"
class Flow < Formula
homepage "http://flowtype.org/"
url "https://github.com/facebook/flow/archive/v0.1.6.tar.gz"
sha1 "c364a4851b397ab5b4c986a181eb832d9d813d2b"
head "https://github.com/facebook/flow.git"
bottle do
cellar :any
sha1 "b58208c9f9e44614e608ba24a495a0e53d8ebd59" => :yosemite
sha1 "c1b52c4332cf767deedcaa0a6f192fbb51aadca5" => :mavericks
sha1 "b677012cca3a65266eb82b47458c5775ce3ab4db" => :mountain_lion
end
depends_on "objective-caml" => :build
def install
system "make"
bin.install "bin/flow"
(share/"flow").install "bin/examples"
end
test do
output = `#{bin}/flow single #{share}/flow/examples/01_HelloWorld`
assert_match(/This type is incompatible with/, output)
assert_match(/Found 1 error/, output)
end
end