-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* imp: added a Makefile * imp: using just now * ci: simplified the test command * docs: updated docs * ci: using just in ci now
- Loading branch information
Showing
4 changed files
with
105 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Build optimized wasm using the cosmwasm/optimizer:0.15.1 docker image | ||
build-optimize: | ||
echo "Compiling optimized wasm..." | ||
docker run --rm -t -v "$(pwd)":/code \ | ||
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \ | ||
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \ | ||
cosmwasm/optimizer:0.15.1 | ||
echo "Optimized wasm file created at 'artifacts/cw-ica-controller.wasm'" | ||
|
||
# Run cargo fmt and clippy | ||
lint: | ||
cargo fmt --all -- --check | ||
cargo clippy --all-targets --all-features -- -D warnings | ||
|
||
# Build the test contracts using the cosmwasm/optimizer:0.15.1 docker image | ||
build-test-contracts: | ||
echo "Building test contracts..." | ||
echo "Building cw-ica-owner..." | ||
docker run --rm -t -v "$(pwd)":/code \ | ||
--mount type=volume,source="devcontract_cache_burner",target=/code/contracts/burner/target \ | ||
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \ | ||
cosmwasm/optimizer:0.15.1 ./testing/contracts/cw-ica-owner | ||
echo "Building callback-counter..." | ||
docker run --rm -t -v "$(pwd)":/code \ | ||
--mount type=volume,source="devcontract_cache_burner",target=/code/contracts/burner/target \ | ||
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \ | ||
cosmwasm/optimizer:0.15.1 ./testing/contracts/callback-counter | ||
echo "Optimized wasm files created at 'artifacts/cw-ica-owner.wasm' and 'artifacts/callback-counter.wasm'" | ||
|
||
# Run the unit tests | ||
unit-tests: | ||
RUST_BACKTRACE=1 cargo test --locked --all-features | ||
|
||
# Run the e2e tests | ||
e2e-test testname: | ||
echo "Running {{testname}} test..." | ||
cd e2e/interchaintest && go test -v -run={{testname}} |