chore(just): define local build and test targets
This commit is contained in:
parent
30f36fc265
commit
16e353b2a5
15
justfile
15
justfile
|
@ -46,6 +46,13 @@ build:
|
|||
make \
|
||||
{{ rockspec_file }}
|
||||
|
||||
local-build:
|
||||
luarocks \
|
||||
--lua-version {{ lua_version }} \
|
||||
make \
|
||||
--tree {{ rocks_tree }} \
|
||||
{{ rockspec_file }}
|
||||
|
||||
clean:
|
||||
rm -rf build
|
||||
|
||||
|
@ -66,6 +73,14 @@ test PATTERN="_spec":
|
|||
{{ rockspec_file }} \
|
||||
-- --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)
|
||||
coverage:
|
||||
busted --coverage
|
||||
|
|
Loading…
Reference in New Issue