tide/Makefile

29 lines
735 B
Makefile
Raw Normal View History

SHELL := /usr/bin/env fish
.PHONY: all
all: fmt lint install test
.PHONY: fmt
fmt:
@fish_indent --write **/*.fish
.PHONY: lint
lint:
@for file in **/*.fish; fish --no-execute $$file; end
.PHONY: install
install:
@type -q fisher || begin; curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher; end
@fisher install . >/dev/null
littlecheck:
@curl -sL https://raw.githubusercontent.com/ridiculousfish/littlecheck/HEAD/littlecheck/littlecheck.py -o littlecheck
@chmod +x littlecheck
.PHONY: test
test: install littlecheck
@type -q mock || fisher install IlanCosman/clownfish
@fish tests/test_setup.fish
2021-11-25 20:47:53 +03:00
@_tide_remove_unusable_items
2021-08-22 05:45:34 +03:00
@_tide_cache_variables; ./littlecheck --progress tests/*.test.fish