gitbucket 2.6

Closes Homebrew/homebrew#35234.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Baptiste Fontaine 2014-12-24 14:40:10 +01:00 committed by Jack Nagel
parent 739c6bef51
commit 821b27f411

View file

@ -1,9 +1,7 @@
require "formula"
class Gitbucket < Formula
homepage "https://github.com/takezoe/gitbucket"
url "https://github.com/takezoe/gitbucket/releases/download/2.4.1/gitbucket.war"
sha256 "365ec6f2c496a27a220851af6e7f3e2a8a996e34782a20fc3317b21f9bdaf242"
url "https://github.com/takezoe/gitbucket/releases/download/2.6/gitbucket.war"
sha256 "9cbd3c2dbbd6ce71e2105b992e07b21fd1f8af884892d338d431eebcf113201b"
head do
url "https://github.com/takezoe/gitbucket.git"
@ -48,4 +46,12 @@ class Gitbucket < Formula
Note: When using launchctl the port will be 8080.
EOS
end
test do
io = IO.popen("java -jar #{libexec}/gitbucket.war")
sleep 12
Process.kill("SIGINT", io.pid)
Process.wait(io.pid)
io.read !~ /Exception/
end
end