From 8fe482e14366e7cb1d8bbf3b12630a9e6176bb62 Mon Sep 17 00:00:00 2001 From: Anirudh Ramanathan Date: Fri, 30 Jun 2017 02:32:41 -0600 Subject: [PATCH] Add helm update deps step to CI (#1381) * Update testing to install deps * Add dep update step * Addressed review comments --- test/helm-test-e2e.sh | 3 +++ test/helm-test/main.go | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/test/helm-test-e2e.sh b/test/helm-test-e2e.sh index 5e3a47ad1a..4973497f36 100755 --- a/test/helm-test-e2e.sh +++ b/test/helm-test-e2e.sh @@ -20,6 +20,9 @@ kubectl -n kube-system create sa tiller kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller linux-amd64/helm init --service-account tiller --upgrade +linux-amd64/helm repo add stable https://kubernetes-charts.storage.googleapis.com/ +linux-amd64/helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/ + # Run test framework pushd . cd $GOPATH diff --git a/test/helm-test/main.go b/test/helm-test/main.go index 2dc92cb6eb..612f2a0bed 100644 --- a/test/helm-test/main.go +++ b/test/helm-test/main.go @@ -232,6 +232,14 @@ func doMain() int { return execErr }) + xmlWrap(fmt.Sprintf("Helm Dep Build %s", path.Base(chartPath)), func() error { + o, execErr := output(exec.Command(helmPath, "dep", "build", chartPath)) + if execErr != nil { + return fmt.Errorf("%s Command output: %s", execErr, string(o[:])) + } + return nil + }) + xmlWrap(fmt.Sprintf("Helm Install %s", path.Base(chartPath)), func() error { o, execErr := output(exec.Command(helmPath, "install", chartPath, "--namespace", ns, "--name", rel, "--wait")) if execErr != nil {