Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Allow releses from HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
fgsch committed Feb 20, 2019
1 parent 8c753e8 commit 22c03a9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,24 @@ brew:
folder: Formula
homepage: https://github.com/fastly/waflyctl
description: Allows you to provision a Fastly waf object with pre-determine rules, OWASP config, response, and logging endpoints. Also manage rules, and their status.
custom_block: |
head do
url "https://github.com/fastly/waflyctl.git"
depends_on "dep" => :build
depends_on "go" => :build
end
install: |
def install
if build.head?
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/fastly/waflyctl").install buildpath.children
cd "src/github.com/fastly/waflyctl" do
system "dep", "ensure", "-vendor-only"
system "go", "build", "-o", buildpath/"waflyctl"
end
end
bin.install "waflyctl"
end
test: |
system "#{bin}/waflyctl"

0 comments on commit 22c03a9

Please sign in to comment.