wip
This commit is contained in:
parent
9c198f1109
commit
4faf6cd0d0
8 changed files with 10 additions and 21 deletions
|
@ -1,7 +1,6 @@
|
||||||
return {
|
return {
|
||||||
default = {
|
default = {
|
||||||
verbose = true,
|
verbose = true,
|
||||||
helper = "./spec/_helper.lua",
|
|
||||||
lpath = "./src/?.lua;./src/?/init.lua;./src/?/?.lua;./tests/?.lua",
|
lpath = "./src/?.lua;./src/?/init.lua;./src/?/?.lua;./tests/?.lua",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ resources:
|
||||||
type: git
|
type: git
|
||||||
icon: github
|
icon: github
|
||||||
source:
|
source:
|
||||||
uri: https://git.sclu1034.dev/lucas/lgi-libpulse-glib.git
|
uri: https://git.sclu1034.dev/lucas/lua-libpulse-glib
|
||||||
branch: ci
|
branch: ci
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
|
@ -5,13 +5,10 @@ set -ex
|
||||||
sudo enable-lua ${LUA_VERSION:-5.1}
|
sudo enable-lua ${LUA_VERSION:-5.1}
|
||||||
eval "$(luarocks --lua-version ${LUA_VERSION:-5.1} path)"
|
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 lgi
|
||||||
luarocks --lua-version ${LUA_VERSION:-5.1} install ldoc
|
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} 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}
|
sudo disable-lua ${LUA_VERSION:-5.1}
|
||||||
|
|
|
@ -5,7 +5,7 @@ platform: linux
|
||||||
image_resource:
|
image_resource:
|
||||||
type: registry-image
|
type: registry-image
|
||||||
source:
|
source:
|
||||||
repository: registry.local:5000/lua-clib-x11
|
repository: registry.local:5000/lua-clib-pulse
|
||||||
tag: latest
|
tag: latest
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
|
|
13
.ci/test.sh
13
.ci/test.sh
|
@ -13,22 +13,11 @@ fi
|
||||||
sudo enable-lua ${LUA_VERSION:-5.1}
|
sudo enable-lua ${LUA_VERSION:-5.1}
|
||||||
eval "$(luarocks --lua-version ${LUA_VERSION:-5.1} path)"
|
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 busted
|
||||||
luarocks --lua-version ${LUA_VERSION:-5.1} install lgi
|
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 ldoc
|
||||||
luarocks --lua-version ${LUA_VERSION:-5.1} install lua-discount
|
luarocks --lua-version ${LUA_VERSION:-5.1} install lua-discount
|
||||||
|
|
||||||
cmake -S "${SOURCE_DIR:-./}" -B "${BUILD_DIR:-./build}" ${CMAKE_ARGS}
|
make -j $(nproc) -C ${SOURCE_DIR:-.} LUA_VERSION=${LUA_VERSION:-5.1} LUA=lua
|
||||||
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
|
|
||||||
|
|
||||||
sudo disable-lua ${LUA_VERSION:-5.1}
|
sudo disable-lua ${LUA_VERSION:-5.1}
|
||||||
|
|
|
@ -4,7 +4,7 @@ platform: linux
|
||||||
image_resource:
|
image_resource:
|
||||||
type: registry-image
|
type: registry-image
|
||||||
source:
|
source:
|
||||||
repository: registry.local:5000/lua-clib-x11
|
repository: registry.local:5000/lua-clib-pulse
|
||||||
tag: latest
|
tag: latest
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -50,7 +50,9 @@ TEST_ARGS ?= --output=TAP
|
||||||
CCFLAGS += -Werror
|
CCFLAGS += -Werror
|
||||||
endif
|
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)
|
build: $(TARGET)
|
||||||
|
|
||||||
|
|
|
@ -310,7 +310,9 @@ static const struct luaU_enumfield proplist_enum[] = {
|
||||||
{ "FORMAT_RATE", PA_PROP_FORMAT_RATE },
|
{ "FORMAT_RATE", PA_PROP_FORMAT_RATE },
|
||||||
{ "FORMAT_CHANNELS", PA_PROP_FORMAT_CHANNELS },
|
{ "FORMAT_CHANNELS", PA_PROP_FORMAT_CHANNELS },
|
||||||
{ "FORMAT_CHANNEL_MAP", PA_PROP_FORMAT_CHANNEL_MAP },
|
{ "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 },
|
{ "CONTEXT_FORCE_DISABLE_SHM", PA_PROP_CONTEXT_FORCE_DISABLE_SHM },
|
||||||
{ "BLUETOOTH_CODEC", PA_PROP_BLUETOOTH_CODEC },
|
{ "BLUETOOTH_CODEC", PA_PROP_BLUETOOTH_CODEC },
|
||||||
|
#endif
|
||||||
{ NULL, NULL }
|
{ NULL, NULL }
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue