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.1.1.tar.gz"
sha1 "6786fa11bdca29b1bdb0602616c6b0c165a00b9e"
head "https://github.com/facebook/flow.git"
2014-11-19 10:16:30 +00:00
bottle do
cellar :any
sha1 "cc278985ed101cd8e267be5a80585acc79e15825" => :yosemite
sha1 "ee8fa0635437c54963c836ea105b69ac65b5f251" => :mavericks
sha1 "60c22342e4c298034939c29d44b41281bb75fa07" => :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