From fddb0fa4ee3c31ada296edc2f96de291ba0e4105 Mon Sep 17 00:00:00 2001 From: Aaron Prindle Date: Wed, 12 Sep 2018 15:01:16 -0700 Subject: [PATCH] fix presubmit-test.sh script for prow (#48) currently the presubmit-test.sh script for prow is failing as we have a dependency on kubebuilder in our tests that prow does not have. this adds a kubebuilder install to the test, we can alternatively add this dependency in knative/test-infra to our test container. --- test/presubmit-tests.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/presubmit-tests.sh b/test/presubmit-tests.sh index a0a532e1a60..f4d9b6fcf7e 100755 --- a/test/presubmit-tests.sh +++ b/test/presubmit-tests.sh @@ -23,6 +23,11 @@ function build_tests() { function unit_tests() { echo "Running unit tests" + export version=1.0.0 + export arch=amd64 + curl -LO https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${version}/kubebuilder_${version}_linux_${arch}.tar.gz + tar -zxvf kubebuilder_${version}_linux_${arch}.tar.gz + mv kubebuilder_${version}_linux_${arch} /usr/local/kubebuilder make test }