Skip to content

Commit

Permalink
Install cf cli under bin/cf and use it for smoke tests
Browse files Browse the repository at this point in the history
issue #3459

Co-authored-by: Georgi Sabev <[email protected]>
  • Loading branch information
danail-branekov and georgethebeatle committed Sep 16, 2024
1 parent 68dd24d commit 2f656af
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ help: ## Display this help.
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)

##@ Development
BIN_PATH = $(shell pwd)/bin
export PATH := $(shell pwd)/bin:$(PATH)

CONTROLLERS=controllers job-task-runner kpack-image-builder statefulset-runner
COMPONENTS=api $(CONTROLLERS)
Expand Down Expand Up @@ -76,7 +78,7 @@ test-e2e: build-dorifi
test-crds: build-dorifi
./scripts/run-tests.sh tests/crds

test-smoke: build-dorifi
test-smoke: build-dorifi bin/cf
./scripts/run-tests.sh tests/smoke


Expand Down Expand Up @@ -109,5 +111,13 @@ GOLANGCILINT = $(shell go env GOPATH)/bin/golangci-lint
install-golangci-lint:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest

bin/cf:
mkdir -p $(BIN_PATH)
curl -fsSL "https://packages.cloudfoundry.org/stable?release=linux64-binary&version=v8&source=github" \
| tar -zx cf8 \
&& mv cf8 $(BIN_PATH)/cf \
&& chmod +x $(BIN_PATH)/cf


vendir-update-dependencies: install-vendir
$(VENDIR) sync --chdir tests

0 comments on commit 2f656af

Please sign in to comment.