Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add luarocks test support #593

Merged
merged 2 commits into from
Mar 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,13 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
luarocks_version: [2.4.4, 3.8.0]
luarocks_version: [3.8.0]
lua_engine: [Lua, LuaJIT]
include:
- lua_engine: LuaJIT
lua_version: luajit2.1
- lua_engine: Lua
lua_version: lua5.4
# use 5.3 with Luarocks 2.x
- luarocks_version: 2.4.4
lua_engine: Lua
lua_version: lua5.3
env:
# For LuaJIT 2.1, see https://github.com/LuaJIT/LuaJIT/commit/8961a92dd1607108760694af3486b4434602f8be
MACOSX_DEPLOYMENT_TARGET: 10.12
Expand Down
11 changes: 0 additions & 11 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,15 @@ environment:
- LJ_VER: 2.1
LUAROCKS_VER: 3.8.0

# LuaRocks 2.x
- LUA_VER: 5.3.6
NOCOMPAT: true # with compatibility flags disabled.
LUAROCKS_VER: 2.4.4
- LJ_VER: 2.1
LUAROCKS_VER: 2.4.4

matrix:
fast_finish: true
exclude:
# Skip x86 for LuaRocks tests
- platform: x86
LUAROCKS_VER: 3.8.0
- platform: x86
LUAROCKS_VER: 2.4.4
# Only test LuaRocks with latest MSVC
- image: Visual Studio 2015
LUAROCKS_VER: 3.8.0
- image: Visual Studio 2015
LUAROCKS_VER: 2.4.4

cache:
- c:\lua -> appveyor.yml
Expand Down
6 changes: 6 additions & 0 deletions luv-scm-0.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version = "scm-0"
source = {
url = 'git://github.com/luvit/luv.git'
}
rockspec_format = "3.0"

description = {
summary = "Bare libuv bindings for lua",
Expand Down Expand Up @@ -33,3 +34,8 @@ build = {
LUADIR="$(LUADIR)",
},
}

test = {
type = "command",
script = "tests/run.lua",
}
6 changes: 6 additions & 0 deletions rockspecs/luv-scm-0.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "scm-0"
source = {
url = 'git://github.com/luvit/luv.git'
}
rockspec_format = "3.0"

description = {
summary = "Bare libuv bindings for lua",
Expand Down Expand Up @@ -84,3 +85,8 @@ build = {
};
}
}

test = {
type = "command",
script = "tests/run.lua",
}