|
|
@ -9,6 +9,10 @@ GOX = $(GOPATH)/bin/gox
|
|
|
|
GOIMPORTS = $(GOPATH)/bin/goimports
|
|
|
|
GOIMPORTS = $(GOPATH)/bin/goimports
|
|
|
|
GOLANGCI_LINT = $(GOPATH)/bin/golangci-lint
|
|
|
|
GOLANGCI_LINT = $(GOPATH)/bin/golangci-lint
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ACCEPTANCE_DIR:=$(GOPATH)/src/helm.sh/acceptance-testing
|
|
|
|
|
|
|
|
# To specify the subset of acceptance tests to run. '.' means all tests
|
|
|
|
|
|
|
|
ACCEPTANCE_RUN_TESTS=.
|
|
|
|
|
|
|
|
|
|
|
|
# go option
|
|
|
|
# go option
|
|
|
|
PKG := ./...
|
|
|
|
PKG := ./...
|
|
|
|
TAGS :=
|
|
|
|
TAGS :=
|
|
|
@ -81,6 +85,17 @@ test-style: vendor $(GOLANGCI_LINT)
|
|
|
|
$(GOLANGCI_LINT) run
|
|
|
|
$(GOLANGCI_LINT) run
|
|
|
|
@scripts/validate-license.sh
|
|
|
|
@scripts/validate-license.sh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: test-acceptance
|
|
|
|
|
|
|
|
test-acceptance: TARGETS = linux/amd64
|
|
|
|
|
|
|
|
test-acceptance: build build-cross
|
|
|
|
|
|
|
|
@if [ -d "${ACCEPTANCE_DIR}" ]; then \
|
|
|
|
|
|
|
|
cd ${ACCEPTANCE_DIR} && \
|
|
|
|
|
|
|
|
ROBOT_RUN_TESTS=$(ACCEPTANCE_RUN_TESTS) ROBOT_HELM_PATH=$(BINDIR) make acceptance; \
|
|
|
|
|
|
|
|
else \
|
|
|
|
|
|
|
|
echo "You must install the acceptance_testing repo under $(ACCEPTANCE_DIR)"; \
|
|
|
|
|
|
|
|
echo "You can find the acceptance_testing repo at https://github.com/helm/acceptance-testing"; \
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: verify-docs
|
|
|
|
.PHONY: verify-docs
|
|
|
|
verify-docs: build
|
|
|
|
verify-docs: build
|
|
|
|
@scripts/verify-docs.sh
|
|
|
|
@scripts/verify-docs.sh
|
|
|
|