Skip to content

Commit

Permalink
book: refactor verification
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Büringer [email protected]
  • Loading branch information
sbueringer committed Feb 17, 2022
1 parent 294917f commit 89c1809
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ tiltfile-fix: ## Format the Tiltfile
apidiff: $(GO_APIDIFF) ## Check for API differences
$(GO_APIDIFF) $(shell git rev-parse origin/main) --print-compatible

ALL_VERIFY_CHECKS = doctoc boilerplate shellcheck tiltfile modules gen conversions docker-provider book-links
ALL_VERIFY_CHECKS = doctoc boilerplate shellcheck tiltfile modules gen conversions docker-provider

.PHONY: verify
verify: $(addprefix verify-,$(ALL_VERIFY_CHECKS)) ## Run all verify-* targets
Expand Down Expand Up @@ -362,10 +362,6 @@ verify-docker-provider:
@echo "Verifying CAPD"
cd $(CAPD_DIR); $(MAKE) verify

.PHONY: verify-book-links
verify-book-links: ## Verify book links
$(MAKE) -C docs/book verify

## --------------------------------------
## Binaries
## --------------------------------------
Expand Down Expand Up @@ -433,6 +429,10 @@ docker-build-kubeadm-control-plane: ## Build the docker image for kubeadm contro
e2e-framework: ## Builds the CAPI e2e framework
cd $(E2E_FRAMEWORK_DIR); go build ./...

.PHONY: build-book
build-book: ## Build the book
$(MAKE) -C docs/book build

.PHONY: serve-book
serve-book: ## Build and serve the book (with live-reload)
$(MAKE) -C docs/book serve
Expand Down
4 changes: 0 additions & 4 deletions docs/book/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,3 @@ serve: $(MDBOOK) $(TABULATE) $(EMBED) $(RELEASELINK) $(MDBOOK_LINKCHECK)
.PHONY: build
build: $(MDBOOK) $(TABULATE) $(EMBED) $(RELEASELINK) $(MDBOOK_LINKCHECK)
$(MDBOOK) build

.PHONY: verify
verify: $(MDBOOK) $(TABULATE) $(EMBED) $(RELEASELINK) $(MDBOOK_LINKCHECK)
$(MDBOOK) build
2 changes: 1 addition & 1 deletion scripts/ci-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ set -o pipefail
REPO_ROOT=$(dirname "${BASH_SOURCE[0]}")/..

# Core Cluster API
cd "${REPO_ROOT}" && make managers clusterctl e2e-framework
cd "${REPO_ROOT}" && make managers clusterctl e2e-framework build-book

echo "*** Building Cluster API Provider Docker ***"
# Docker provider
Expand Down

0 comments on commit 89c1809

Please sign in to comment.