-
Notifications
You must be signed in to change notification settings - Fork 12
/
justfile
22 lines (20 loc) · 1.13 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
optimize:
if [[ $(uname -m) =~ "arm64" ]]; then \
docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
--platform linux/arm64 \
cosmwasm/rust-optimizer-arm64:0.12.12; else \
docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
--platform linux/amd64 \
cosmwasm/rust-optimizer:0.12.12; fi
simtest: optimize
mkdir -p tests/wasms
if [[ $(uname -m) =~ "arm64" ]]; then cp artifacts/cw_ibc_example-aarch64.wasm tests/wasms/cw_ibc_example.wasm ; else cp artifacts/cw_ibc_example.wasm tests/wasms; fi
cd tests/simtests && go test ./...
interchaintest: optimize
mkdir -p tests/wasms
if [[ $(uname -m) =~ "arm64" ]]; then cp artifacts/cw_ibc_example-aarch64.wasm tests/wasms/cw_ibc_example.wasm ; else cp artifacts/cw_ibc_example.wasm tests/wasms; fi
cd tests/strangelove && go test ./...