Compare commits
No commits in common. "b9cda2deba74f2b4809ec30880a574ad8a5e6e17" and "1745e5d4adf5b17b2a605413a760109e48fdb06c" have entirely different histories.
b9cda2deba
...
1745e5d4ad
9 changed files with 7 additions and 142 deletions
|
@ -1,6 +1,7 @@
|
||||||
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",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,57 +0,0 @@
|
||||||
---
|
|
||||||
resources:
|
|
||||||
- name: repo
|
|
||||||
type: git
|
|
||||||
icon: github
|
|
||||||
source:
|
|
||||||
uri: https://git.sclu1034.dev/lucas/lua-libpulse-glib
|
|
||||||
branch: ci
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
- name: test
|
|
||||||
plan:
|
|
||||||
- get: repo
|
|
||||||
trigger: true
|
|
||||||
- in_parallel:
|
|
||||||
- task: run-test-5.1
|
|
||||||
file: repo/.ci/test.yml
|
|
||||||
vars:
|
|
||||||
lua-version: 5.1
|
|
||||||
- task: run-test-5.2
|
|
||||||
file: repo/.ci/test.yml
|
|
||||||
vars:
|
|
||||||
lua-version: 5.2
|
|
||||||
- task: run-test-5.3
|
|
||||||
file: repo/.ci/test.yml
|
|
||||||
vars:
|
|
||||||
lua-version: 5.3
|
|
||||||
# There is no rock for 5.4 LGI, yet. And I don't want to build that from source.
|
|
||||||
- try:
|
|
||||||
task: run-test-5.4
|
|
||||||
file: repo/.ci/test.yml
|
|
||||||
vars:
|
|
||||||
lua-version: 5.4
|
|
||||||
|
|
||||||
- name: rock
|
|
||||||
plan:
|
|
||||||
- get: repo
|
|
||||||
trigger: true
|
|
||||||
- in_parallel:
|
|
||||||
- task: run-rock-5.1
|
|
||||||
file: repo/.ci/rock.yml
|
|
||||||
vars:
|
|
||||||
lua-version: 5.1
|
|
||||||
- task: run-rock-5.2
|
|
||||||
file: repo/.ci/rock.yml
|
|
||||||
vars:
|
|
||||||
lua-version: 5.2
|
|
||||||
- task: run-rock-5.3
|
|
||||||
file: repo/.ci/rock.yml
|
|
||||||
vars:
|
|
||||||
lua-version: 5.3
|
|
||||||
# There is no rock for 5.4 LGI, yet. And I don't want to build that from source.
|
|
||||||
- try:
|
|
||||||
task: run-rock-5.4
|
|
||||||
file: repo/.ci/rock.yml
|
|
||||||
vars:
|
|
||||||
lua-version: 5.4
|
|
14
.ci/rock.sh
14
.ci/rock.sh
|
@ -1,14 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
sudo enable-lua ${LUA_VERSION:-5.1}
|
|
||||||
eval "$(luarocks --lua-version ${LUA_VERSION:-5.1} path)"
|
|
||||||
|
|
||||||
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/lua-libpulse-glib-scm-1.rockspec
|
|
||||||
|
|
||||||
sudo disable-lua ${LUA_VERSION:-5.1}
|
|
20
.ci/rock.yml
20
.ci/rock.yml
|
@ -1,20 +0,0 @@
|
||||||
|
|
||||||
---
|
|
||||||
platform: linux
|
|
||||||
|
|
||||||
image_resource:
|
|
||||||
type: registry-image
|
|
||||||
source:
|
|
||||||
repository: registry.local:5000/lua-clib-pulse
|
|
||||||
tag: latest
|
|
||||||
|
|
||||||
inputs:
|
|
||||||
- name: repo
|
|
||||||
|
|
||||||
params:
|
|
||||||
CI: true
|
|
||||||
LUA_VERSION: ((lua-version))
|
|
||||||
|
|
||||||
run:
|
|
||||||
path: .ci/rock.sh
|
|
||||||
dir: repo
|
|
23
.ci/test.sh
23
.ci/test.sh
|
@ -1,23 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
mkdir -p "${BUILD_DIR:-./build}"
|
|
||||||
|
|
||||||
CMAKE_ARGS=""
|
|
||||||
|
|
||||||
if [ -n "$CI" ]; then
|
|
||||||
CMAKE_ARGS="-DCI=ON"
|
|
||||||
fi
|
|
||||||
|
|
||||||
sudo enable-lua ${LUA_VERSION:-5.1}
|
|
||||||
eval "$(luarocks --lua-version ${LUA_VERSION:-5.1} path)"
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
make -j $(nproc) -C ${SOURCE_DIR:-.} LUA_VERSION=${LUA_VERSION:-5.1} LUA=lua
|
|
||||||
|
|
||||||
sudo disable-lua ${LUA_VERSION:-5.1}
|
|
20
.ci/test.yml
20
.ci/test.yml
|
@ -1,20 +0,0 @@
|
||||||
---
|
|
||||||
platform: linux
|
|
||||||
|
|
||||||
image_resource:
|
|
||||||
type: registry-image
|
|
||||||
source:
|
|
||||||
repository: registry.local:5000/lua-clib-pulse
|
|
||||||
tag: latest
|
|
||||||
|
|
||||||
inputs:
|
|
||||||
- name: repo
|
|
||||||
|
|
||||||
params:
|
|
||||||
CI: true
|
|
||||||
SOURCE_DIR: repo
|
|
||||||
BUILD_DIR: /tmp/build-output
|
|
||||||
LUA_VERSION: ((lua-version))
|
|
||||||
|
|
||||||
run:
|
|
||||||
path: repo/.ci/test.sh
|
|
4
Makefile
4
Makefile
|
@ -50,9 +50,7 @@ TEST_ARGS ?= --output=TAP
|
||||||
CCFLAGS += -Werror
|
CCFLAGS += -Werror
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: all clean doc doc-content doc-styles install uninstall test check rock
|
.PHONY: clean doc doc-content doc-styles install uninstall test check rock
|
||||||
|
|
||||||
all: build doc
|
|
||||||
|
|
||||||
build: $(TARGET)
|
build: $(TARGET)
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ ifdef::env-github,env-browser[]
|
||||||
:toc: macro
|
:toc: macro
|
||||||
:toclevels: 1
|
:toclevels: 1
|
||||||
endif::[]
|
endif::[]
|
||||||
|
ifdef::env-github[]
|
||||||
:branch: master
|
:branch: master
|
||||||
:status:
|
:status:
|
||||||
:outfilesuffix: .adoc
|
:outfilesuffix: .adoc
|
||||||
|
@ -14,15 +15,16 @@ endif::[]
|
||||||
:note-caption: :paperclip:
|
:note-caption: :paperclip:
|
||||||
:tip-caption: :bulb:
|
:tip-caption: :bulb:
|
||||||
:warning-caption: :warning:
|
:warning-caption: :warning:
|
||||||
:url-ci: https://ci.sclu1034.dev/teams/main/pipelines/lgi-libpulse-glib
|
endif::[]
|
||||||
:url-ci-badge: https://ci.sclu1034.dev/api/v1/teams/main/pipelines/lgi-libpulse-glib/badge
|
:url-ci-github: https://github.com/sclu1034/lua-libpulse-glib/actions
|
||||||
|
:url-ci-badge-github: https://img.shields.io/github/workflow/status/sclu1034/lua-libpulse-glib/Lint%20&%20Test?style=flat-square
|
||||||
:url-license-badge: https://img.shields.io/badge/license-GPLv3-brightgreen?style=flat-square
|
:url-license-badge: https://img.shields.io/badge/license-GPLv3-brightgreen?style=flat-square
|
||||||
:url-luarocks-badge: https://img.shields.io/luarocks/v/sclu1034/lua-libpulse-glib?style=flat-square
|
:url-luarocks-badge: https://img.shields.io/luarocks/v/sclu1034/lua-libpulse-glib?style=flat-square
|
||||||
:url-luarocks-link: https://luarocks.org/modules/sclu1034/lua-libpulse-glib
|
:url-luarocks-link: https://luarocks.org/modules/sclu1034/lua-libpulse-glib
|
||||||
|
|
||||||
image:{url-license-badge}[License]
|
image:{url-license-badge}[License]
|
||||||
ifdef::status[]
|
ifdef::status[]
|
||||||
image:{url-ci-badge}[Build Status (Concourse CI), link={url-ci}]
|
image:{url-ci-badge-github}[Build Status (GitHub Actions), link={url-ci-github}]
|
||||||
endif::[]
|
endif::[]
|
||||||
image:{url-luarocks-badge}[LuaRocks Package, link={url-luarocks-link}]
|
image:{url-luarocks-badge}[LuaRocks Package, link={url-luarocks-link}]
|
||||||
|
|
||||||
|
|
|
@ -310,9 +310,7 @@ 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