From f34b71115c9ce3c13d4f97aa2bdf90d87c88accc Mon Sep 17 00:00:00 2001 From: Nikolay Govorov Date: Sat, 29 Aug 2026 23:45:36 +0100 Subject: Move scripts from Makefile to mise --- Makefile | 49 ------------------------------------------------- mise.toml | 31 ++++++++++++++++++++++++++----- 2 files changed, 26 insertions(+), 54 deletions(-) delete mode 100644 Makefile diff --git a/Makefile b/Makefile deleted file mode 100644 index 0374428..0000000 --- a/Makefile +++ /dev/null @@ -1,49 +0,0 @@ -# SPDX-FileCopyrightText: 2026 Nikolay Govorov -# SPDX-License-Identifier: AGPL-3.0-or-later - -all: legal fmt clippy test - -.PHONY: legal -legal: signoff licenses - -.PHONY: signoff -signoff: - mise run signoff - -.PHONY: setup -setup: - mise bootstrap - -.PHONY: licenses -licenses: - mise run licenses - -.PHONY: fmt -fmt: - cargo fmt --all --check - -.PHONY: deps -deps: licenses - -.PHONY: clippy -clippy: - cargo clippy --all-targets --all-features -- -D warnings - -.PHONY: test -test: - cargo build --release - cargo test --all-features --release --locked - -.PHONY: smoke -smoke: - cargo run -p smoke - -.PHONY: smoke-local -smoke-local: - ./tests/smoke/run-local.sh - -.PHONY: coverage -coverage: - mkdir -p target/coverage/ - cargo llvm-cov --all-features --workspace --lcov --output-path target/coverage/lcov.info - cargo llvm-cov --all-features --workspace --html --output-dir target/coverage/html diff --git a/mise.toml b/mise.toml index f894447..f616adc 100644 --- a/mise.toml +++ b/mise.toml @@ -10,11 +10,7 @@ experimental = true "aqua:taiki-e/cargo-llvm-cov" = "0.8.7" gh = "2.96.0" jq = "1.8.2" -rust = { version = "1.97.1", profile = "minimal", components = [ - "clippy", - "llvm-tools-preview", - "rustfmt", -] } +rust = { version = "1.97.1", profile = "minimal", components = [ "clippy", "llvm-tools-preview", "rustfmt" ] } [bootstrap.packages] # APT @@ -40,3 +36,28 @@ dir = "{{cwd}}" includes = [ "git::https://github.com/dimidiumlabs/platform.git//tasks?ref=8bc35fe8be889c50db2d1fb4425cc1b4097dc6b8", ] + +[tasks.fmt] +run = "cargo fmt --all --check" + +[tasks.clippy] +run = "cargo clippy --all-targets --all-features -- -D warnings" + +[tasks.test] +run = """ +cargo build --release +cargo test --all-features --release --locked +""" + +[tasks.smoke] +run = "cargo run -p smoke" + +[tasks.smoke-local] +run = "./tests/smoke/run-local.sh" + +[tasks.coverage] +run = """ +mkdir -p target/coverage/ +cargo llvm-cov --all-features --workspace --lcov --output-path target/coverage/lcov.info +cargo llvm-cov --all-features --workspace --html --output-dir target/coverage/html +""" -- Gilti