mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 20:13:05 +03:00
740904fe6a
* isolate tests * add Makefile * Makefile edits Co-authored-by: Ilan Cosman <ilancosman@gmail.com>
28 lines
682 B
Makefile
28 lines
682 B
Makefile
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
|
|
@./littlecheck --progress tests/*.test.fish
|