vegeta 7.0.3
Closes #28193. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
829299816e
commit
5de2508656
1 changed files with 5 additions and 7 deletions
|
@ -1,8 +1,9 @@
|
||||||
class Vegeta < Formula
|
class Vegeta < Formula
|
||||||
desc "HTTP load testing tool and library"
|
desc "HTTP load testing tool and library"
|
||||||
homepage "https://github.com/tsenart/vegeta"
|
homepage "https://github.com/tsenart/vegeta"
|
||||||
url "https://github.com/tsenart/vegeta/archive/v7.0.0.tar.gz"
|
url "https://github.com/tsenart/vegeta.git",
|
||||||
sha256 "b9e2ae43b832849c46e9aa0e1cddf5938e79b9addad01481b3cbfb7aa09a03cb"
|
:tag => "v7.0.3",
|
||||||
|
:revision => "f5e8a53b900b1509b8719aa94c30d4cf087a77e9"
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
cellar :any_skip_relocation
|
cellar :any_skip_relocation
|
||||||
|
@ -16,13 +17,10 @@ class Vegeta < Formula
|
||||||
|
|
||||||
def install
|
def install
|
||||||
ENV["GOPATH"] = buildpath
|
ENV["GOPATH"] = buildpath
|
||||||
ENV["CGO_ENABLED"] = "0"
|
|
||||||
|
|
||||||
(buildpath/"src/github.com/tsenart/vegeta").install buildpath.children
|
(buildpath/"src/github.com/tsenart/vegeta").install buildpath.children
|
||||||
cd "src/github.com/tsenart/vegeta" do
|
cd "src/github.com/tsenart/vegeta" do
|
||||||
system "dep", "ensure"
|
system "make", "vegeta"
|
||||||
system "go", "build", "-ldflags", "-X main.Version=#{version}",
|
bin.install "vegeta"
|
||||||
"-o", bin/"vegeta"
|
|
||||||
prefix.install_metafiles
|
prefix.install_metafiles
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue