Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (42 loc) · 1.63 KB
/
Copy pathMakefile
File metadata and controls
58 lines (42 loc) · 1.63 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
.PHONY: update-abi-snapshots check-abi-snapshots dev test lint deploy-testnet abi-snapshot \
smoke smoke-up check-docs-sync
# Regenerate committed ABI metadata under abis/ (deterministic; LC_ALL=C).
# Assumes COMEBACKHERE-contracts/ is a sibling directory.
update-abi-snapshots:
@./scripts/generate_abi_metadata.sh abis
# Verify abis/ matches freshly generated metadata (no writes).
check-abi-snapshots:
@./scripts/generate_abi_metadata.sh /tmp/comebackhere-abis-check
@diff -ru abis/ /tmp/comebackhere-abis-check/
dev:
docker-compose up -d
# Check that the whole stack came up (no deployed contracts needed).
smoke:
@./tests/smoke_stack.sh
# Start the stack, smoke test it, then tear it down.
smoke-up:
@./tests/smoke_stack.sh --up --down
# Verify webhook and rate-limit docs match the backend implementation.
check-docs-sync:
@./scripts/check_webhook_docs_sync.sh
@./scripts/check_ratelimit_docs_sync.sh
test:
cargo test --manifest-path COMEBACKHERE-contracts/Cargo.toml
lint:
@./scripts/lint-docs.sh && cargo clippy --manifest-path COMEBACKHERE-contracts/Cargo.toml -- -D warnings && (cd frontend && npx eslint src --ext ts,tsx --report-unused-disable-directives)
deploy-testnet:
@test -n "$$STELLAR_NETWORK" || (echo "ERROR: STELLAR_NETWORK is not set" && exit 1)
@test -n "$$DEPLOYER_SECRET" || (echo "ERROR: DEPLOYER_SECRET is not set" && exit 1)
@./scripts/deploy_testnet.sh
abi-snapshot:
@$(MAKE) update-abi-snapshots
verify:
@./scripts/verify.sh
lint-docs:
@./scripts/lint-docs.sh
snapshot:
@$(MAKE) update-abi-snapshots
check-snapshot:
@$(MAKE) check-abi-snapshots
default: verify
.PHONY: default snapshot check-snapshot