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