-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
71 lines (56 loc) · 1.55 KB
/
Copy pathMakefile
File metadata and controls
71 lines (56 loc) · 1.55 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
.PHONY: help build test shell deploy clean docker-build docker-test docker-shell docker-deploy docker-clean
# Default target
help:
@echo "🐳 Ginva Protocol - Docker Build Commands"
@echo "=========================================="
@echo ""
@echo "Docker Commands:"
@echo " make docker-build - Build program using Docker"
@echo " make docker-test - Run tests using Docker"
@echo " make docker-shell - Enter Docker shell"
@echo " make docker-deploy - Deploy to devnet using Docker"
@echo " make docker-clean - Clean Docker cache"
@echo ""
@echo "Native Commands (if you can build natively):"
@echo " make build - Build program natively"
@echo " make test - Run tests natively"
@echo " make deploy - Deploy to devnet"
@echo " make clean - Clean build artifacts"
@echo ""
@echo "Setup:"
@echo " make setup - Setup devnet environment"
@echo " make bot - Start monitoring bot"
@echo ""
# Docker commands (recommended)
docker-build:
./docker-build.sh
docker-test:
docker-compose up --build test
docker-shell:
docker-compose run --rm shell
docker-deploy:
docker-compose up --build deploy-devnet
docker-clean:
docker-compose down -v
docker system prune -f
# Native commands (if no toolchain issues)
build:
anchor build
test:
anchor test
deploy:
anchor deploy --provider.cluster devnet
clean:
rm -rf target
cargo clean
# Setup and utilities
setup:
npm run setup:devnet
bot:
npm run bot:start
demo:
npm run demo:full
lint:
npm run lint
lint-fix:
npm run lint:fix