-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (45 loc) · 1.3 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
install:
@echo "installing wasmd"
./scripts/install.sh
init: kill-dev
@echo "init wasm chain"
./scripts/init.sh
localnet:
@echo "Starting up test network"
./scripts/init.sh
./scripts/start.sh
deploy:
@echo "Deploying ref contract"
./scripts/deploy_contract.sh
kill-dev:
@echo "Killing wasmd and removing previous data"
-@rm -rf ./data
-@killall -9 wasmd 2>/dev/null
kill:
@echo "Killing wasmd"
-@killall -9 wasmd 2>/dev/null
test-unit-relayer:
@echo "Testing Relayer"
cd cw-relayer && ${MAKE} test-unit
test-unit-contract:
@echo "Testing contract"
cd cosmwasm && cargo test
compile-contract:
cosmwasm/scripts/build_artifacts.sh
compile-contract-arm:
cosmwasm/scripts/build_artifacts_arm.sh
start-relayer:
cd cw-relayer && ${MAKE} start
test-e2e:
@echo "Running e2e tests"
${MAKE} compile-contract
cp -f cosmwasm/artifacts/std_reference.wasm cw-relayer/tests/e2e/config/std_reference.wasm
cd cw-relayer && ${MAKE} test-e2e
rm cw-relayer/tests/e2e/config/std_reference.wasm
test-e2e-arm:
@echo "Running e2e tests"
${MAKE} compile-contract-arm
cp -f cosmwasm/artifacts/std_reference-aarch64.wasm cw-relayer/tests/e2e/config/std_reference.wasm
cd cw-relayer && ${MAKE} test-e2e
rm cw-relayer/tests/e2e/config/std_reference.wasm
.PHONY: test-e2e test-e2e-arm compile-contract compile-contract-arm