Skip to content

Commit

Permalink
Fix check-all
Browse files Browse the repository at this point in the history
  • Loading branch information
h4nsu committed Sep 12, 2023
1 parent 53c99b5 commit ea11c79
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@ build-node-arm64:
build-node-x86_64:
@docker buildx build --pull --platform linux/amd64 -t aleph-onenode-chain-x86_64 --load docker

UNI_CONTRACTS = ./amm/contracts
UNI_CONTRACTS_PATHS := $(shell find $(UNI_CONTRACTS) -mindepth 1 -maxdepth 1 -type d)
AMM_CONTRACTS = ./amm/contracts
AMM_CONTRACTS_PATHS := $(shell find $(AMM_CONTRACTS) -mindepth 1 -maxdepth 1 -type d)

FARM_CONTRACTS = ./farm/contracts
FARM_PATHS := $(shell find ./farm -mindepth 1 -maxdepth 1 -type d)

.PHONY: build-all
build-all: ## Builds all contracts.
@for d in $(UNI_CONTRACTS_PATHS); do \
@for d in $(AMM_CONTRACTS_PATHS); do \
echo "Building $$d contract" ; \
cargo contract build --quiet --manifest-path $$d/Cargo.toml --release ; \
done
Expand All @@ -55,11 +56,11 @@ check-all: ## Runs cargo checks and unit tests on all contracts.
@cargo check --quiet --all-targets --all-features --all
@cargo clippy --quiet --all-features -- --no-deps -D warnings
@cargo fmt --quiet --all --check
@for d in $(UNI_CONTRACTS_PATHS); do \
@for d in $(AMM_CONTRACTS_PATHS); do \
echo "Checking $$d" ; \
cargo contract check --quiet --manifest-path $$d/Cargo.toml ; \
done
@for d in $(FARM_CONTRACTS_PATHS); do \
@for d in $(FARM_PATHS); do \
echo "Checking $$d" ; \
cargo contract check --quiet --manifest-path $$d/Cargo.toml ; \
done
Expand Down

0 comments on commit ea11c79

Please sign in to comment.