chore(just): define local build and test targets
This commit is contained in:
parent
cac7b0a00a
commit
9a75c18f4e
15
justfile
15
justfile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue