-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
79 lines (61 loc) · 2.38 KB
/
Makefile
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
#######################
### xx network only ###
#######################
# Builds production ready xxnetwork-chain binary containing only xxnetwork runtime
build-prod:
@cargo build -p xxnetwork-cli --profile production
# Builds xxnetwork-chain binary containing only xxnetwork runtime
build-release:
@cargo build -p xxnetwork-cli --release
#######################
### xx canary only ###
#######################
# Builds production ready xxnetwork-chain binary containing only canary runtime
build-canary-prod:
@cargo build -p xxnetwork-cli --profile production --no-default-features --features cli,canary
# Builds xxnetwork-chain binary containing only canary runtime
build-canary-release:
@cargo build -p xxnetwork-cli --release --no-default-features --features cli,canary
#######################
### both runtimes ###
#######################
# Builds all packages
build:
@cargo build --release --features canary
# Builds all packages with accelerated runtimes
build-dev:
@cargo build --release --features fast-runtime
# Builds xxnetwork-chain binary with runtime-benchmarks feature enabled
# Uses production profile, in order to correctly benchmark the production binary
build-bench:
@cargo build -p xxnetwork-cli --profile production --features runtime-benchmarks
# Builds xxnetwork-chain binary with try-runtime feature enabled
build-try-runtime:
@cargo build -p xxnetwork-cli --release --features try-runtime
# Builds xxnetwork-chain binary containing accelerated runtimes with the try-runtime feature enabled
build-dev-try-runtime:
@cargo build -p xxnetwork-cli --release --features fast-runtime,try-runtime
#######################
### build runtimes ###
#######################
build-canary-runtime:
@SRTOOL_TAG="1.66.1" srtool build --package canary-runtime
build-xxnetwork-runtime:
@SRTOOL_TAG="1.66.1" srtool build --package xxnetwork-runtime
build-runtimes: build-canary-runtime build-xxnetwork-runtime
#######################
### tests ###
#######################
all-tests:
@echo "Running all unit tests\n"
@cargo test --workspace
test-pallets:
@echo "Running unit tests for all pallets\n"
@cd chainbridge; cargo test; cd ../
@cd claims; cargo test; cd ../
@cd swap; cargo test; cd ../
@cd xx-betanet-rewards; cargo test; cd ../
@cd xx-cmix; cargo test; cd ../
@cd xx-economics; cargo test; cd ../
@cd xx-public; cargo test; cd ../
@cd xx-team-custody; cargo test; cd ../