chore(just): define local build and test targets
ci/woodpecker/pr/docker-build Pipeline was successful Details
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/pr/build Pipeline was successful Details
ci/woodpecker/pr/test Pipeline was successful Details

This commit is contained in:
Aire-One 2023-09-18 14:18:58 +02:00
parent 30f36fc265
commit 16e353b2a5
1 changed files with 15 additions and 0 deletions

View File

@ -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