ghr 0.12.0 (new formula)
Closes #33393. Signed-off-by: Igor Kapkov <igasgeek@me.com>
This commit is contained in:
parent
0070219c0b
commit
288b768ef9
1 changed files with 26 additions and 0 deletions
26
Formula/ghr.rb
Normal file
26
Formula/ghr.rb
Normal file
|
@ -0,0 +1,26 @@
|
|||
class Ghr < Formula
|
||||
desc "Upload multiple artifacts to GitHub Release in parallel"
|
||||
homepage "https://tcnksm.github.io/ghr"
|
||||
url "https://github.com/tcnksm/ghr/archive/v0.12.0.tar.gz"
|
||||
sha256 "d1b95e55fc4e995de7909942dd031cf218fcb6e3ffbad2cdd2c527b34a7dd2bd"
|
||||
|
||||
depends_on "dep" => :build
|
||||
depends_on "go" => :build
|
||||
|
||||
def install
|
||||
ENV["GOPATH"] = buildpath
|
||||
dir = buildpath/"src/github.com/tcnksm/ghr"
|
||||
dir.install Dir["*"]
|
||||
cd dir do
|
||||
system "dep", "ensure", "-vendor-only"
|
||||
system "go", "build", "-o", bin/"ghr"
|
||||
prefix.install_metafiles
|
||||
end
|
||||
end
|
||||
|
||||
test do
|
||||
ENV["GITHUB_TOKEN"] = nil
|
||||
args = "-username testbot -repository #{testpath} v#{version} #{Dir.pwd}"
|
||||
assert_include "token not found", shell_output("#{bin}/ghr #{args}", 15)
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue