riff 0.3.0

Update to riff 0.3.0

riff is now using go modules, hence the simplification of the
installation logic.

The test command has been changed as the Knative eventing-related
subcommands (`channel`, `subscription`...) are now deprecated.

Closes #38815.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Florent Biville 2019-04-10 14:28:11 +02:00 committed by FX Coudert
parent 6836805cce
commit 028550dffe

View file

@ -4,8 +4,8 @@ class Riff < Formula
desc "Function As A Service on top of Knative, riff is for functions"
homepage "https://www.projectriff.io/"
url "https://github.com/projectriff/riff.git",
:tag => "v0.2.0",
:revision => "1ae190ff3c7edf4b375ee935f746ebfd1d8eaf5c"
:tag => "v0.3.0",
:revision => "4e474f57a463d4d2c1159af64d562532fcb3ac1b"
bottle do
cellar :any_skip_relocation
@ -18,21 +18,17 @@ class Riff < Formula
depends_on "kubernetes-cli"
def install
ENV["GOPATH"] = buildpath
contents = Dir["{*,.git,.gitattributes,.gitignore,.travis.yml}"]
(buildpath/"src/github.com/projectriff/riff").install contents
cd "src/github.com/projectriff/riff" do
cd buildpath do
system "make", "build"
bin.install "riff"
end
end
test do
stdout, stderr, status = Open3.capture3("#{bin}/riff --kubeconfig not-a-kube-config-file channel list")
stdout, stderr, status = Open3.capture3("#{bin}/riff --kubeconfig not-a-kube-config-file service list")
assert_equal false, status.success?
assert_match "List channels", stdout
assert_match "List service resources", stdout
assert_match "Error: stat not-a-kube-config-file: no such file or directory", stderr
end
end