homebrew-core/Formula/ship.rb

36 lines
1.2 KiB
Ruby
Raw Normal View History

class Ship < Formula
desc "Reducing the overhead of maintaining 3rd-party applications in Kubernetes"
homepage "https://www.replicated.com/ship"
url "https://github.com/replicatedhq/ship/archive/v0.31.0.tar.gz"
sha256 "f8590e5ee12711003ac3b398d4c445b905e2327bf40b1edd9c199c11fa5cbecd"
2019-01-02 18:14:19 +00:00
bottle do
cellar :any_skip_relocation
2019-01-09 22:58:53 +00:00
sha256 "df9bc67216db29650755f3a2eef51b222f7b8822391316b1d05494ad6bd22251" => :mojave
sha256 "2c3be7d504b38c573e389f190803efa65d75752ead39d8a25b1d51a1714bb238" => :high_sierra
sha256 "a9127e24621654a0530fc6fe67aa1ce87ee9cc07dbd05c09bea8a315640c04f5" => :sierra
2019-01-02 18:14:19 +00:00
end
depends_on "go" => :build
depends_on "node" => :build
depends_on "yarn" => :build
def install
ENV["GOPATH"] = buildpath
srcpath = buildpath/"src/github.com/replicatedhq/ship"
srcpath.install buildpath.children
srcpath.cd do
system "make", "VERSION=#{version}", "build-minimal"
bin.install "bin/ship"
end
end
test do
assert_match(/#{version}/, shell_output("#{bin}/ship version"))
assert_match(/Usage:/, shell_output("#{bin}/ship --help"))
test_chart = "https://github.com/replicatedhq/test-charts/tree/master/plain-k8s"
system bin/"ship", "init", "--headless", test_chart
end
end