-
Notifications
You must be signed in to change notification settings - Fork 3
/
justfile
79 lines (65 loc) · 1.89 KB
/
justfile
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
lint:
cargo clippy --all-targets -- -D warnings
lint-fix:
cargo clippy --all-targets --fix -- -D warnings
schema:
sh scripts/schema.sh
artifacts:
mkdir -p artifacts
download-artifacts: artifacts
scripts/download-launchpad-artifacts.sh
clear-artifacts: artifacts
rm -rf artifacts
mkdir -p artifacts
optimize:
sh scripts/optimize.sh
optimize-arm:
sh scripts/optimize-arm.sh
deploy-local:
#!/usr/bin/env bash
TEST_ADDRS=`jq -r '.[].address' ./typescript/packages/e2e-tests/configs/test_accounts.json | tr '\n' ' '`
docker kill stargaze || true
docker volume rm -f stargaze_data
docker run --rm -d --name stargaze \
-e DENOM=ustars \
-e CHAINID=testing \
-e GAS_LIMIT=75000000 \
-p 1317:1317 \
-p 26656:26656 \
-p 26657:26657 \
-p 9090:9090 \
--mount type=volume,source=stargaze_data,target=/root \
publicawesome/stargaze:10.0.1 /data/entry-point.sh $TEST_ADDRS
deploy-local-arm:
#!/usr/bin/env bash
TEST_ADDRS=`jq -r '.[].address' ./typescript/packages/e2e-tests/configs/test_accounts.json | tr '\n' ' '`
docker kill stargaze || true
docker volume rm -f stargaze_data
docker run --rm -d --name stargaze \
-e DENOM=ustars \
-e CHAINID=testing \
-e GAS_LIMIT=75000000 \
-p 1317:1317 \
-p 26656:26656 \
-p 26657:26657 \
-p 9090:9090 \
--mount type=volume,source=stargaze_data,target=/root \
--platform linux/amd64 \
publicawesome/stargaze:10.0.1 /data/entry-point.sh $TEST_ADDRS
e2e-test:
#!/usr/bin/env bash
START_DIR=$(pwd)
cd typescript/packages/e2e-tests
yarn install
yarn test
e2e-test-full: download-artifacts optimize deploy-local e2e-test
e2e-test-full-arm: download-artifacts optimize-arm deploy-local-arm e2e-test
e2e-watch: deploy-local-arm
#!/usr/bin/env bash
START_DIR=$(pwd)
cd typescript/packages/e2e-tests
yarn test
yarn test:watch
publish:
cd packages/sg-std && cargo publish && cd ../..
cd packages/sg-multi-test && cargo publish && cd ../..