mirror of
https://github.com/mailscope/kumomta.git
synced 2026-09-10 04:22:13 +00:00
use the drone cli to check that the starlark is well-formed, and to try to run a build. Useful for sanity checking a pending CI commit. Slim down the deps very slight on ubuntu systems.
23 lines
561 B
Makefile
23 lines
561 B
Makefile
check:
|
|
cargo check
|
|
|
|
check-ci: .drone.star
|
|
./assets/ci/check-starlark.sh
|
|
|
|
test:
|
|
cargo build
|
|
cargo nextest run
|
|
|
|
fmt:
|
|
cargo +nightly fmt
|
|
stylua --config-path stylua.toml .
|
|
black docs/generate-toc.py .drone.star
|
|
|
|
sink: unsink
|
|
sudo iptables -t nat -A OUTPUT -p tcp \! -d 192.168.1.0/24 --dport 25 -j DNAT --to-destination 127.0.0.1:2026
|
|
sudo iptables -t nat -L -n
|
|
smtp-sink 127.0.0.1:2026 2000 || exit 0
|
|
|
|
unsink: # float?
|
|
while sudo iptables -t nat -D OUTPUT -p tcp \! -d 192.168.1.0/24 --dport 25 -j DNAT --to-destination 127.0.0.1:2026 ; do true ; done
|