diff options
| -rw-r--r-- | Library/Formula/gitbucket.rb | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Library/Formula/gitbucket.rb b/Library/Formula/gitbucket.rb index 91a7244ce..20a83dc32 100644 --- a/Library/Formula/gitbucket.rb +++ b/Library/Formula/gitbucket.rb @@ -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 |
