2021-07-25 20:46:58 +03:00
|
|
|
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
|
2021-07-25 20:46:58 +03:00
|
|
|
|
|
|
|
.PHONY: lint
|
|
|
|
lint:
|
2022-04-10 23:34:06 +03:00
|
|
|
@for file in **.fish; fish --no-execute $$file; end
|
2021-07-25 20:46:58 +03:00
|
|
|
|
|
|
|
.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
|
2021-07-25 20:46:58 +03:00
|
|
|
|
|
|
|
.PHONY: test
|
2022-04-07 03:21:35 +03:00
|
|
|
test: install littlecheck.py
|
2021-07-25 20:46:58 +03:00
|
|
|
@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
|