homebrew-core/Formula/flow.rb

30 lines
811 B
Ruby
Raw Normal View History

require "formula"
class Flow < Formula
homepage "http://flowtype.org/"
url "https://github.com/facebook/flow/archive/v0.3.0.tar.gz"
sha1 "d325b01c2b42ecb72e3e11dbb988ed08c5e79702"
head "https://github.com/facebook/flow.git"
2014-11-19 10:16:30 +00:00
bottle do
cellar :any
2015-02-04 23:29:18 +00:00
sha1 "85f19cd0ae02563604f238acca481be9c80e9d07" => :yosemite
sha1 "4e7d2948772aa186600b9246df60bcc3cfed1b4f" => :mavericks
sha1 "e9ce9616ff21755b84b0738197e32ca39fb07fc5" => :mountain_lion
2014-11-19 10:16:30 +00:00
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