-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
78 lines (59 loc) · 1.67 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
BUILDER = ./bin/coreumbridge-xrpl-builder
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
CONTRACT_DIR:=$(ROOT_DIR)/contract
.PHONY: znet-start
znet-start:
$(BUILDER) znet start --profiles=bridge-xrpl
.PHONY: znet-remove
znet-remove:
$(BUILDER) znet remove
.PHONY: lint
lint:
$(BUILDER) lint
.PHONY: test
test:
$(BUILDER) test
.PHONY: fuzz-test
fuzz-test:
$(BUILDER) fuzz-test
.PHONY: build-relayer
build-relayer:
$(BUILDER) build/relayer
.PHONY: build-contract
build-contract:
$(BUILDER) build/contract
.PHONY: images
images:
$(BUILDER) images
.PHONY: release
release:
$(BUILDER) release
.PHONY: release-images
release-images:
$(BUILDER) release/images
.PHONY: integration-tests-xrpl
integration-tests-xrpl:
$(BUILDER) integration-tests/xrpl
.PHONY: integration-tests-processes
integration-tests-processes:
$(BUILDER) integration-tests/processes
.PHONY: integration-tests-contract
integration-tests-contract:
$(BUILDER) integration-tests/contract
.PHONY: integration-tests-stress
integration-tests-stress:
$(BUILDER) integration-tests/stress
# FIXME (wojtek): Builder does not support the following actions
.PHONY: lint-contract
lint-contract:
cd $(CONTRACT_DIR) && cargo clippy --verbose -- -D warnings || exit 1;
.PHONY: test-contract
test-contract:
cd $(CONTRACT_DIR) && cargo test --verbose
.PHONY: restart-bridge-znet-env
restart-bridge-znet-env:
docker compose -p bridge-znet -f ./infra/composer/docker-compose.yaml stop
$(BUILDER) znet remove
docker compose -p bridge-znet -f ./infra/composer/docker-compose.yaml down
$(BUILDER)znet start --profiles=bridge-xrpl
docker compose -p bridge-znet -f ./infra/composer/docker-compose.yaml up -d