blob: e5006f6df85183e28418c70f464704fa26f76e94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
require "formula"
class Flow < Formula
homepage "http://flowtype.org/"
url "https://github.com/facebook/flow/archive/v0.1.4.tar.gz"
sha1 "d2268e65fbf000f902903955a3d7adf198fa6335"
head "https://github.com/facebook/flow.git"
bottle do
cellar :any
sha1 "1e7a1bddf6a5e25d5b9659eecf9c59aafad19067" => :yosemite
sha1 "0b48153daada81af835d08759091fea6ddfe5f99" => :mavericks
sha1 "8bf895eec56205c38b599f936d9c639527faaa11" => :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
|