1
Fork 0
This commit is contained in:
Lucas Schwiderski 2022-08-14 16:49:53 +02:00
parent 9c198f1109
commit 4faf6cd0d0
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8
8 changed files with 10 additions and 21 deletions

View file

@ -1,7 +1,6 @@
return {
default = {
verbose = true,
helper = "./spec/_helper.lua",
lpath = "./src/?.lua;./src/?/init.lua;./src/?/?.lua;./tests/?.lua",
},
}

View file

@ -4,7 +4,7 @@ resources:
type: git
icon: github
source:
uri: https://git.sclu1034.dev/lucas/lgi-libpulse-glib.git
uri: https://git.sclu1034.dev/lucas/lua-libpulse-glib
branch: ci
jobs:

View file

@ -5,13 +5,10 @@ set -ex
sudo enable-lua ${LUA_VERSION:-5.1}
eval "$(luarocks --lua-version ${LUA_VERSION:-5.1} path)"
sudo apt-get update
sudo apt-get install -y --no-install-recommends gobject-introspection libgirepository1.0-dev libpulse-dev
luarocks --lua-version ${LUA_VERSION:-5.1} install lgi
luarocks --lua-version ${LUA_VERSION:-5.1} install ldoc
luarocks --lua-version ${LUA_VERSION:-5.1} install lua-discount
luarocks --lua-version ${LUA_VERSION:-5.1} make rocks/lgi-libpulse-glib-scm-1.rockspec
luarocks --lua-version ${LUA_VERSION:-5.1} make rocks/lua-libpulse-glib-scm-1.rockspec
sudo disable-lua ${LUA_VERSION:-5.1}

View file

@ -5,7 +5,7 @@ platform: linux
image_resource:
type: registry-image
source:
repository: registry.local:5000/lua-clib-x11
repository: registry.local:5000/lua-clib-pulse
tag: latest
inputs:

View file

@ -13,22 +13,11 @@ fi
sudo enable-lua ${LUA_VERSION:-5.1}
eval "$(luarocks --lua-version ${LUA_VERSION:-5.1} path)"
sudo apt-get update
sudo apt-get install -y --no-install-recommends gobject-introspection libgirepository1.0-dev libpulse-dev
luarocks --lua-version ${LUA_VERSION:-5.1} install busted
luarocks --lua-version ${LUA_VERSION:-5.1} install lgi
luarocks --lua-version ${LUA_VERSION:-5.1} install ldoc
luarocks --lua-version ${LUA_VERSION:-5.1} install lua-discount
cmake -S "${SOURCE_DIR:-./}" -B "${BUILD_DIR:-./build}" ${CMAKE_ARGS}
make -j $(nproc) -C "${BUILD_DIR:-./build}"
busted \
--lua /usr/bin/lua \
-C "${SOURCE_DIR:-./}" \
"--config-file=${SOURCE_DIR:-./}/.busted.lua" \
"--cpath=${BUILD_DIR:-./build}/?.so" \
--output=TAP
make -j $(nproc) -C ${SOURCE_DIR:-.} LUA_VERSION=${LUA_VERSION:-5.1} LUA=lua
sudo disable-lua ${LUA_VERSION:-5.1}

View file

@ -4,7 +4,7 @@ platform: linux
image_resource:
type: registry-image
source:
repository: registry.local:5000/lua-clib-x11
repository: registry.local:5000/lua-clib-pulse
tag: latest
inputs:

View file

@ -50,7 +50,9 @@ TEST_ARGS ?= --output=TAP
CCFLAGS += -Werror
endif
.PHONY: clean doc doc-content doc-styles install uninstall test check rock
.PHONY: all clean doc doc-content doc-styles install uninstall test check rock
all: build doc
build: $(TARGET)

View file

@ -310,7 +310,9 @@ static const struct luaU_enumfield proplist_enum[] = {
{ "FORMAT_RATE", PA_PROP_FORMAT_RATE },
{ "FORMAT_CHANNELS", PA_PROP_FORMAT_CHANNELS },
{ "FORMAT_CHANNEL_MAP", PA_PROP_FORMAT_CHANNEL_MAP },
#if PA_CHECK_VERSION(15, 0, 0)
{ "CONTEXT_FORCE_DISABLE_SHM", PA_PROP_CONTEXT_FORCE_DISABLE_SHM },
{ "BLUETOOTH_CODEC", PA_PROP_BLUETOOTH_CODEC },
#endif
{ NULL, NULL }
};