X-Git-Url: https://git.r.bdr.sh/rbdr/blog/blobdiff_plain/d26464d12e41e8d53fca8d0e5f9cc6ac03e48f9a..795d79afdbe5bfe5fd80902f08afdb6b9fa4db03:/Makefile diff --git a/Makefile b/Makefile index 7a2dded..9f8306c 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,18 @@ prepare: build: prepare cargo build --profile $(profile) --target $(target) +test: + cargo test + +coverage: + cargo tarpaulin + +format: + cargo fmt && cargo clippy --fix + +lint: + cargo fmt -- --check && cargo clippy + release: rpm tar deb @$(eval filename := $(app_name)-$(target)-$(channel)) @@ -61,7 +73,7 @@ else $(MAKE) -e profile=release -e architectures='$(mac_architectures)' -e channel=$(tag) package endif -ci: +ci: lint coverage ifeq ($(GIT_REF),refs/heads/main) $(MAKE) -e profile=release -e channel=unstable package else ifneq (,$(findstring refs/tags/,$(GIT_REF)))