diff options
| author | William Roe | 2015-04-02 11:01:23 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-04-02 14:35:06 +0100 |
| commit | b0742b6d37104b8f35062bb2c9b0650309f7c847 (patch) | |
| tree | da5f38fb07249433a920e86c371ae4cb34e92970 /Library | |
| parent | 974c2fe374fecc6457699dc09cb1e82239c13aa1 (diff) | |
| download | homebrew-b0742b6d37104b8f35062bb2c9b0650309f7c847.tar.bz2 | |
git-test 1.0.1 (new formula)
Closes #38297.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/git-test.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/git-test.rb b/Library/Formula/git-test.rb new file mode 100644 index 000000000..7f3ab48e1 --- /dev/null +++ b/Library/Formula/git-test.rb @@ -0,0 +1,22 @@ +class GitTest < Formula + homepage "https://github.com/spotify/git-test" + url "https://github.com/spotify/git-test/archive/v1.0.1.tar.gz" + sha256 "1273d97644edf3690cc0310a1f6f33856f83bf736599c54150db7a7ad9e43983" + + def install + share.install "test.sh" + bin.install "git-test" + man1.install "git-test.1" + end + + test do + system "git", "init" + ln_s "#{bin}/git-test", testpath + cp "#{share}/test.sh", testpath + chmod 0755, "test.sh" + system "git", "add", "test.sh" + system "git", "commit", "-m", "initial commit" + ENV["TERM"] = "xterm" + system "#{bin}/git-test", "-v", "HEAD", "--verify='./test.sh'" + end +end |
