test: run all tests
This commit is contained in:
@@ -5,15 +5,10 @@ packages:
|
|||||||
- shellspec
|
- shellspec
|
||||||
- gojq
|
- gojq
|
||||||
- jq
|
- jq
|
||||||
|
- icu-dev
|
||||||
sources:
|
sources:
|
||||||
- https://git.sr.ht/~mil/sxmo-utils
|
- https://git.sr.ht/~mil/sxmo-utils
|
||||||
tasks:
|
tasks:
|
||||||
- shellcheck: |
|
- test: |
|
||||||
cd sxmo-utils
|
cd sxmo-utils
|
||||||
find . -type f -name '*.sh' -print0 | xargs -0 shellcheck -x --shell=sh
|
make test
|
||||||
- shellspec: |
|
|
||||||
cd sxmo-utils
|
|
||||||
shellspec
|
|
||||||
- editorconfig-check: |
|
|
||||||
cd sxmo-utils
|
|
||||||
ec
|
|
||||||
|
7
Makefile
7
Makefile
@@ -12,7 +12,7 @@ EXTERNAL_SERVICES:=1
|
|||||||
|
|
||||||
SCDOC=scdoc
|
SCDOC=scdoc
|
||||||
|
|
||||||
.PHONY: install test shellcheck test_legacy_nerdfont
|
.PHONY: install test shellcheck shellspec test_legacy_nerdfont
|
||||||
|
|
||||||
VERSION:=1.13.0
|
VERSION:=1.13.0
|
||||||
|
|
||||||
@@ -33,11 +33,14 @@ docs/%: docs/%.scd
|
|||||||
|
|
||||||
all: $(PROGRAMS) $(DOCS)
|
all: $(PROGRAMS) $(DOCS)
|
||||||
|
|
||||||
test: shellcheck test_legacy_nerdfont
|
test: shellcheck shellspec test_legacy_nerdfont
|
||||||
|
|
||||||
shellcheck:
|
shellcheck:
|
||||||
find . -type f -name '*.sh' -print0 | xargs -0 shellcheck -x --shell=sh
|
find . -type f -name '*.sh' -print0 | xargs -0 shellcheck -x --shell=sh
|
||||||
|
|
||||||
|
shellspec:
|
||||||
|
shellspec
|
||||||
|
|
||||||
test_legacy_nerdfont: programs/test_legacy_nerdfont
|
test_legacy_nerdfont: programs/test_legacy_nerdfont
|
||||||
programs/test_legacy_nerdfont < configs/default_hooks/sxmo_hook_icons.sh
|
programs/test_legacy_nerdfont < configs/default_hooks/sxmo_hook_icons.sh
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user