-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathMakefile
More file actions
138 lines (106 loc) · 3.53 KB
/
Makefile
File metadata and controls
138 lines (106 loc) · 3.53 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
.PHONY: deep-link-inject
deep-link-serve-local:
ifndef FILE
@echo "Error: FILE parameter is required"
@echo "Usage: make deep-link-inject FILE=<file_path>"
@exit 1
endif
@echo "Injecting deep link for file: $(FILE)"
python3 scripts/serve-and-deep-link-lua.py $(FILE)
deep-link-inject:
ifndef FILE
@echo "Error: FILE parameter is required"
@echo "Usage: make deep-link-inject FILE=<file_path>"
@exit 1
endif
@./scripts/deep-link-inject.sh $(FILE)
validate-remote-config:
@./scripts/validate-remote-config.sh
.PHONY: run-community-tests
run-community-tests: run-community-functions-tests run-community-graph-tests
.PHONY: run-community-functions-tests
run-community-functions-tests:
cd app && ./gradlew :data:cleanTestDebugUnitTest :data:testDebugUnitTest --tests "com.samco.trackandgraph.data.lua.community_test_runner.FunctionTestRunner"
.PHONY: run-community-graph-tests
run-community-graph-tests:
cd app && ./gradlew :data:cleanTestDebugUnitTest :data:testDebugUnitTest --tests "com.samco.trackandgraph.data.lua.community_test_runner.GraphScriptTestRunner"
.PHONY: sync-lua-to-docs
sync-lua-to-docs:
./scripts/sync-lua-to-docs.sh
.PHONY: lua-verify-api-specs
lua-verify-api-specs:
cd lua && lua tools/verify-api-specs.lua
.PHONY: lua-get-max-api-level
lua-get-max-api-level:
cd lua && lua tools/get-max-api-level.lua
.PHONY: lua-validate-functions
lua-validate-functions:
cd lua && lua tools/validate-functions.lua
.PHONY: lua-detect-changes
lua-detect-changes:
cd lua && lua tools/detect-changes.lua
.PHONY: lua-pack-functions
lua-pack-functions:
cd lua && lua tools/pack-functions.lua
.PHONY: lua-publish-debug
lua-publish-debug:
cd lua && lua tools/publish-functions-debug.lua
.PHONY: lua-publish-prod
lua-publish-prod:
cd lua && lua tools/publish-functions-prod.lua
.PHONY: lua-print-catalog
lua-print-catalog:
cd lua && lua tools/print-catalog.lua
.PHONY: lua-test-api
lua-test-api:
cd lua && lua src/tng/test/test_all.lua
.PHONY: lua-test-tools
lua-test-tools:
cd lua && lua tools/test/test_all.lua
.PHONY: validate-all
validate-all: lua-test-api validate-remote-config run-community-tests lua-verify-api-specs lua-validate-functions lua-detect-changes
@echo "All validations passed."
.PHONY: assemble-release
assemble-release:
cd app && ./gradlew :app:clean :app:assembleRelease
.PHONY: bundle-release
bundle-release:
cd app && ./gradlew :app:clean :app:bundleRelease
.PHONY: assemble-bundle-release
assemble-bundle-release:
cd app && ./gradlew :app:clean :app:assembleRelease :app:bundleRelease
# ---------- 1) RECORD LOW-RES SNAPSHOT BASELINES ----------
.PHONY: snapshots-record
snapshots-record:
@./scripts/snapshots-record.sh
# ---------- 2) VERIFY LOW-RES SNAPSHOTS ----------
.PHONY: snapshots-verify
snapshots-verify:
@./scripts/snapshots-verify.sh
# ---------- 3) RECORD HIGH-RES PLAY STORE SHOTS ----------
.PHONY: playstore-record
playstore-record:
@./scripts/playstore-record.sh
.PHONY: reframe
reframe:
@echo "Processing existing screenshots with frameit for all languages..."
@./scripts/frameit-process.sh
# ---------- 4) RECORD TUTORIAL IMAGES FOR APP ----------
.PHONY: tutorial-record
tutorial-record:
@./scripts/tutorial-record.sh
.PHONY: changelog
changelog:
@lua scripts/new_changelog.lua
.PHONY: commit-version
commit-version:
@python3 scripts/commit_version_bump_jj.py
.PHONY: commit-version-git
commit-version-git:
@python3 scripts/commit_version_bump.py
.PHONY: github-release
github-release:
@python3 scripts/create_release_jj.py
.PHONY: github-release-git
github-release-git:
@python3 scripts/create_release.py