-
Notifications
You must be signed in to change notification settings - Fork 369
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 1009 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (22 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.PHONY: help quality list-projects validate-project test-tools build-site
PYTHON ?= python3
PROJECT ?=
help:
@printf '%s\n' \
'Targets:' \
' make quality Run tool tests and the repository quality gate' \
' make list-projects List metadata-discovered root projects' \
' make validate-project PROJECT=<path> Validate one project with the quality gate' \
' make test-tools Run tool unit tests' \
' make build-site Build the Astro Starlight learning portal'
quality: test-tools
$(PYTHON) -m tools.quality_gate .
list-projects:
$(PYTHON) -m tools.list_projects --validate-metadata
validate-project:
@test -n "$(PROJECT)" || (echo 'PROJECT is required, for example: make validate-project PROJECT=project-31-cloud-native-monitoring' >&2; exit 2)
$(PYTHON) -m tools.validate_project "$(PROJECT)"
test-tools:
$(PYTHON) -m pytest tools/tests tools/repo_consolidation/tests -q
build-site:
npm run build