-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhoverfly.rb
More file actions
25 lines (22 loc) · 817 Bytes
/
hoverfly.rb
File metadata and controls
25 lines (22 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class Hoverfly < Formula
desc "lightweight & fantastic service virtualization/API simulation tool, aims to be developer/tester friendly"
homepage "http://hoverfly.io"
url "https://github.com/SpectoLabs/hoverfly/archive/v1.12.6.tar.gz"
sha256 "6a645c0ff1eb01111d1256b72e153cc73be98f7d05de035d35c3b162407ba611"
depends_on "go" => :build
def install
contents = Dir["{*,.git,.gitignore}"]
gopath = buildpath/"gopath"
(gopath/"src/github.com/SpectoLabs/hoverfly").install contents
ENV["GOPATH"] = gopath
ENV.prepend_create_path "PATH", gopath/"bin"
cd gopath/"src/github.com/SpectoLabs/hoverfly" do
system "make", "build", "GIT_TAG_NAME=v#{version}"
bin.install "target/hoverfly"
bin.install "target/hoverctl"
end
end
test do
system "#{bin}/target/hoverfly"
end
end