aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Govorov <me@govorov.online>2026-08-29 23:45:36 +0100
committerNikolay Govorov <me@govorov.online>2026-08-29 23:45:36 +0100
commitf34b71115c9ce3c13d4f97aa2bdf90d87c88accc (patch)
tree56db996feeaba936c0cb0b56c1db7119dbf69510
parent69ce81563d12d04e72be50ce1cf1423d051d52ea (diff)
downloadtar
tar.gz
tar.bz2
tar.lz
tar.xz
tar.zst
zip
Move scripts from Makefile to mise
Diffstat
-rw-r--r--Makefile49+0 −49
-rw-r--r--mise.toml31+26 −5
2 files changed, 26 insertions, 54 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
--- 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
+"""