.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: tests
tests:
@cargo test
.PHONY: build
build: tests
@cargo build --release
.PHONY: integration-cleanup
integration-cleanup:
rm -rf target && \
rm -rf tests/integration/release && \
rm -rf tests/integration/workdir && \
rm -f tests/integration/funzzy
.PHONY: integration
integration: integration-cleanup
@bash tests/integration/runner.sh
.PHONY: integration-tail
integration-tail:
while true; do cat tests/integration/workdir/output.log; sleep 1; clear; done
.PHONY: integration-batch-1
integration-batch-1: integration-cleanup
@bash tests/integration/batches.sh 5
.PHONY: integration-batch-2
integration-batch-2: integration-cleanup
@bash tests/integration/batches.sh 10
.PHONY: lint
lint:
cargo clippy
.PHONY: linter
linter: lint
.PHONY: install
install: tests
GITSHA="$(shell git rev-parse --short HEAD)" cargo install --path .