homebrew-core/Formula/flow.rb

30 lines
890 B
Ruby
Raw Normal View History

require "formula"
class Flow < Formula
homepage "http://flowtype.org/"
url "https://github.com/facebook/flow/archive/v0.10.0.tar.gz"
sha1 "35c2f98334dd867f4f0f1f138117cd7a16e95a02"
head "https://github.com/facebook/flow.git"
2014-11-19 10:16:30 +00:00
bottle do
cellar :any
2015-04-25 11:16:41 +00:00
sha256 "698417f76c3258dafbecac21a937bba06ef328ca8ddfae7bf829b71b8a699f37" => :yosemite
sha256 "6c5788e30b5b3f4be267c88eb39dea6d13abb127beee62c58b37e94739595bb0" => :mavericks
sha256 "237e13f65416acef0cf106bd1774cb0d2490491c271d37956c5a91a9afcf2971" => :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