forked from ChorusOne/wormhole-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (30 loc) · 1.24 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
.PHONY : all config build run clean test_live test_simulated_substrate test_simulated_cosmos test_faulty_simulated_substrate test_faulty_simulated_cosmos
.DEFAULT_GOAL := all
config:
mkdir -p data/.gaiacli
docker-compose run gaia gaiad init --home "/home/gaia/.gaiad" --chain-id=wormhole node || true
cp configs/keyring-test data/.gaiacli/keyring-test -R
cp configs/live_config.json data/live_config.json
cp configs/faulty* data/
cp configs/simulated* data/
cp configs/genesis.json data/.gaiad/config/
cp configs/priv_validator_key.json data/.gaiad/config/
cp configs/config.toml data/.gaiad/config/
build:
docker-compose build
all: | build clean config run
clean:
docker-compose down
rm -rf data
run:
docker-compose up
test_live: | clean config
docker-compose up --exit-code-from qt
test_simulated_substrate: | clean config
TEST_MODE=simulated_substrate docker-compose up --exit-code-from qt
test_simulated_cosmos: | clean config
TEST_MODE=simulated_cosmos docker-compose up --exit-code-from qt
test_faulty_simulated_substrate: | clean config
TEST_MODE=faulty_simulated_substrate docker-compose up --exit-code-from qt
test_faulty_simulated_cosmos: | clean config
TEST_MODE=faulty_simulated_cosmos docker-compose up --exit-code-from qt