mirror of
https://github.com/lloeki/apply.git
synced 2025-12-06 09:24:38 +01:00
Initial version of testing + Nix flake
This commit is contained in:
parent
68af0ac537
commit
d7586c4071
6 changed files with 1628 additions and 40 deletions
19
Makefile
19
Makefile
|
|
@ -1,6 +1,19 @@
|
|||
all:
|
||||
|
||||
lint:
|
||||
@find apply push lib -type f -not -iname '*.*' | xargs shellcheck -s bash
|
||||
@shellcheck -s dash run
|
||||
@echo -e "\033[032mOK\033[0m"
|
||||
@find apply push -type f -not -iname '*.*' | xargs shellcheck -s bash
|
||||
@find run lib -type f -not -iname '*.*' | xargs shellcheck -s dash
|
||||
@printf "\033[032mLINT OK\033[0m\n\n"
|
||||
|
||||
test: lint test-dash test-bash
|
||||
|
||||
test-ash:
|
||||
@cd test && ash ./lib_test.sh
|
||||
|
||||
test-dash:
|
||||
@cd test && dash ./lib_test.sh
|
||||
|
||||
test-bash:
|
||||
@cd test && bash ./lib_test.sh
|
||||
|
||||
.PHONY: lint test test-dash test-bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue