tinty 0.8.0

Change the theme of your terminal, text editor and anything else with one command!
publish: publish_dry
	@echo "---------------"
	@echo "Running publish"
	@echo "---------------"
	cargo publish

publish_dry: setup_tests
	@echo "-------------------"
	@echo "Running publish_dry"
	@echo "-------------------"
	@echo "Generating license file"
	cargo about generate about.hbs > license.html
	@if [ -n "$(git status --porcelain)" ]; then \
		echo "There are changes." && exit 1; \
	fi
	@echo "Publish dry run"
	cargo publish --dry-run

test_docker: setup_tests
	@echo "-------------------"
	@echo "Running test_docker"
	@echo "-------------------"
	docker build --target clippy -t tinty-clippy .
	docker build --target fmt -t tinty-fmt .
	docker build --target test -t tinty-test .

test: setup_tests
	@echo "------------"
	@echo "Running test"
	@echo "------------"
	RUST_TEST_THREADS=1 cargo test

setup_tests: build
	@echo "-----------------"
	@echo "Creating fixtures"
	@echo "-----------------"
	./scripts/create_fixtures

build:
	@echo "-------------"
	@echo "Running build"
	@echo "-------------"
	cargo build --release
	cargo deny check