chore(just): define local build and test targets

This commit is contained in:
Aire-One 2023-09-18 14:18:58 +02:00
parent cac7b0a00a
commit 9a75c18f4e
1 changed files with 15 additions and 0 deletions

View File

@ -46,6 +46,13 @@ build:
make \ make \
{{ rockspec_file }} {{ rockspec_file }}
local-build:
luarocks \
--lua-version {{ lua_version }} \
make \
--tree {{ rocks_tree }} \
{{ rockspec_file }}
clean: clean:
rm -rf build rm -rf build
@ -66,6 +73,14 @@ test PATTERN="_spec":
{{ rockspec_file }} \ {{ rockspec_file }} \
-- --pattern={{ PATTERN }} -- --pattern={{ PATTERN }}
local-test PATTERN="_spec":
luarocks \
--lua-version {{ lua_version }} \
test \
--tree {{ rocks_tree }} \
{{ rockspec_file }} \
-- --pattern={{ PATTERN }}
# Requires a patched version of luacov (https://github.com/lunarmodules/luacov/issues/98#issuecomment-1530491759) # Requires a patched version of luacov (https://github.com/lunarmodules/luacov/issues/98#issuecomment-1530491759)
coverage: coverage:
busted --coverage busted --coverage