-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (43 loc) · 1.5 KB
/
Makefile
File metadata and controls
59 lines (43 loc) · 1.5 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# AppTheory Makefile
.PHONY: all build test test-unit lint fmt fmt-check rubric verify-builds \
theorycloud-apptheory-subtree verify-theorycloud-apptheory-subtree \
sync-theorycloud-apptheory-subtree trigger-theorycloud-publish \
verify-theorycloud-apptheory-publish-config
TOOLCHAIN := $(shell awk '/^toolchain / {print $$2}' go.mod | head -n 1)
export GOTOOLCHAIN ?= $(TOOLCHAIN)
all: fmt lint test build
build:
@echo "Building release artifacts..."
@./scripts/verify-ts-pack.sh
@./scripts/verify-python-build.sh
@./scripts/verify-cdk-ts-pack.sh
@./scripts/verify-cdk-python-build.sh
test: test-unit
@./scripts/verify-version-alignment.sh
test-unit:
@go test ./...
lint:
@./scripts/verify-go-lint.sh
@./scripts/verify-ts-lint.sh
@./scripts/verify-python-lint.sh
fmt:
@files="$$(git ls-files '*.go' | while read -r f; do if [ -f "$$f" ]; then echo "$$f"; fi; done)"; \
if [ -n "$$files" ]; then \
gofmt -w $$files; \
fi
fmt-check:
@./scripts/fmt-check.sh
rubric:
@./scripts/verify-rubric.sh
verify-builds:
@./scripts/verify-builds.sh
theorycloud-apptheory-subtree:
@bash ./scripts/stage-theorycloud-apptheory-subtree.sh
verify-theorycloud-apptheory-subtree:
@bash ./scripts/verify-theorycloud-apptheory-subtree.sh
sync-theorycloud-apptheory-subtree:
@bash ./scripts/sync-theorycloud-apptheory-subtree.sh
trigger-theorycloud-publish:
@bash ./scripts/trigger-theorycloud-publish.sh
verify-theorycloud-apptheory-publish-config:
@bash ./scripts/verify-theorycloud-apptheory-publish-config.sh