forked from timewave-computer/covenants
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
51 lines (43 loc) · 1.51 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
build:
cargo build
test:
cargo test
lint:
cargo clippy --all-targets -- -D warnings
schema:
#!/usr/bin/env sh
for dir in contracts/*; do
if [ -d "$dir" ]; then
echo "Generating schema for $dir"
(cd "$dir" && cargo schema)
fi
done
optimize: build
#!/usr/bin/env sh
./optimize.sh
if [[ $(uname -m) =~ "arm64" ]]; then
for file in ./artifacts/*-aarch64.wasm; do
if [ -f "$file" ]; then
new_name="${file%-aarch64.wasm}.wasm"
mv "$file" "./$new_name"
fi
done
fi
local-e2e-rebuild TEST PATTERN='.*': optimize
mkdir -p interchaintest/{{TEST}}/wasms
cp -R interchaintest/wasms/polytone/*.wasm interchaintest/{{TEST}}/wasms
cp -R interchaintest/wasms/astroport/*.wasm interchaintest/{{TEST}}/wasms
cp -R artifacts/*.wasm interchaintest/{{TEST}}/wasms
ls interchaintest/{{TEST}}/wasms
cd interchaintest/{{TEST}} && go clean -testcache && go test -timeout 60m -v -run '{{PATTERN}}'
local-e2e TEST PATTERN='.*':
mkdir -p interchaintest/{{TEST}}/wasms
cp -R interchaintest/wasms/polytone/*.wasm interchaintest/{{TEST}}/wasms
cp -R interchaintest/wasms/astroport/*.wasm interchaintest/{{TEST}}/wasms
cp -R artifacts/*.wasm interchaintest/{{TEST}}/wasms
cd interchaintest/{{TEST}} && go clean -testcache && go test -timeout 60m -v -run '{{PATTERN}}'
start-local-ic:
cd local-interchaintest && local-ic start neutron_gaia_osmosis_stride --api-port 42069
run-e2e: optimize
export RUST_LOG=debug
cargo run --package local-ictest-e2e --bin local-ictest-e2e