]> git.r.bdr.sh - rbdr/lyricli/blobdiff - Makefile
Include dbus to use vendored
[rbdr/lyricli] / Makefile
index 50cebd1d4a6cdb000e9b50534b48152c26f405e8..766196fd27c458f2e2928d690bc2968f8b41d14a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,18 @@ prepare:
 build: prepare
        @export $$(cat .env | xargs) > /dev/null 2>&1 && cargo build --profile $(profile) --target $(target)
 
+test:
+       @export $$(cat .env | xargs) > /dev/null 2>&1 && cargo test
+
+coverage:
+       @export $$(cat .env | xargs) > /dev/null 2>&1 && cargo tarpaulin
+
+format:
+       @export $$(cat .env | xargs) > /dev/null 2>&1 && cargo fmt && cargo clippy --fix
+
+lint:
+       @export $$(cat .env | xargs) > /dev/null 2>&1 && cargo fmt -- --check && cargo clippy
+
 release: rpm tar deb
        @$(eval filename := $(app_name)-$(target)-$(channel))
 
@@ -62,8 +74,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)))