diff options
| author | Ben Alpert | 2014-11-18 10:57:59 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-11-19 10:42:46 +0000 |
| commit | 6d620ae70b91a3b8c3c05734322325c218ef32b2 (patch) | |
| tree | a8604fc20602167a5270fe412d85d4c3182a1409 /Library/Formula | |
| parent | 06f7cef5f4031f37365657d0ce96008d477567f0 (diff) | |
| download | homebrew-6d620ae70b91a3b8c3c05734322325c218ef32b2.tar.bz2 | |
flow 0.1.0 (new formula)
Closes #34289.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/flow.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/flow.rb b/Library/Formula/flow.rb new file mode 100644 index 000000000..c99cd8acb --- /dev/null +++ b/Library/Formula/flow.rb @@ -0,0 +1,22 @@ +require "formula" + +class Flow < Formula + homepage "http://flowtype.org/" + url "https://github.com/facebook/flow/archive/v0.1.0.tar.gz" + sha1 "780134b1fffd7f1dd8ba397290133d5a49c6e144" + head "https://github.com/facebook/flow.git" + + 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 |
