ci: woodpecker initial

This commit is contained in:
Aire-One 2022-08-09 23:32:30 +02:00
parent d95b678a43
commit 5fac5864de
2 changed files with 16 additions and 5 deletions

12
.woodpecker.yml Normal file
View File

@ -0,0 +1,12 @@
pipeline:
prepare:
image: akorn/luarocks:lua5.4-alpine
commands:
- apk add just gcc musl-dev curl-dev
- just install
check:
image: akorn/luarocks:lua5.4-alpine
commands:
- apk add just
- luarocks install luacheck
- just check

View File

@ -1,15 +1,14 @@
lua_version := "5.4"
lua_bin := "lua" + lua_version
lua := lua_bin + " -l set_paths"
rocks_tree := "lua_modules"
rockspec_file := "rockspecs/awesomewm.d.tl-dev-1.rockspec"
lua_bin := `command -v lua5.4`
lua := lua_bin + " -l set_paths"
luarocks := `command -v luarocks`
lua_targets := `find src/ -iname '*.lua' | xargs` + " " + `ls *.lua | xargs`
install:
{{ luarocks }} \
luarocks \
--lua-version {{ lua_version }} \
install \
--tree {{ rocks_tree }} \