tide/Makefile

32 lines
769 B
Makefile
Raw Normal View History

SHELL := /usr/bin/env fish
.PHONY: all
all: fmt lint install test
.PHONY: fmt
fmt:
2022-04-10 23:34:06 +03:00
@fish_indent --write **.fish
.PHONY: lint
lint:
2022-04-10 23:34:06 +03:00
@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
2022-04-07 03:21:35 +03:00
littlecheck.py:
@curl -sL https://raw.githubusercontent.com/ridiculousfish/littlecheck/HEAD/littlecheck/littlecheck.py -o littlecheck.py
.PHONY: test
2022-04-07 03:21:35 +03:00
test: install littlecheck.py
@type -q mock || fisher install IlanCosman/clownfish
@fish tests/test_setup.fish
2021-11-25 20:47:53 +03:00
@_tide_remove_unusable_items
2022-04-10 23:34:06 +03:00
@_tide_cache_variables; python3 littlecheck.py --progress tests/**.test.fish
2023-02-18 19:43:57 +03:00
.PHONY: clean
clean:
@rm littlecheck.py