Awesome
This project demonstrates how to:
- Install Lua 5.1/5.2/5.3/JIT
- Install LuaRocks
- make and install Lua module containing C and Lua parts
- Run tests
- Post coverage report to coveralls.io service
LuaJIT can be tested using latest stable release (2.0.4) and also current master branches of LuaJIT 2.0 and 2.1. These options map onto 'luajit', 'luajit2.0' and 'luajit2.1' in the test matrix, respectively.
Other CI
CodeShip
Test environment contain Lua 5.1.2/LuaRocks 2.0.8. To use this luarocks you should use local tree to install Lua modules. But also you can use this install script
export LUAROCKS=2.2.1
export LUA=lua5.3
export TRAVIS_BUILD_DIR=$(pwd)
export TRAVIS_OS_NAME=linux
source .travis/setenv_lua.sh
$HOME/.lua/luarocks install Lua-cURL --server=https://luarocks.org/dev
$HOME/.lua/luarocks install luacov-coveralls --server=https://luarocks.org/dev
$HOME/.lua/luarocks install lunitx
$HOME/.lua/luarocks make rockspecs/foo-scm-0.rockspec
Test script
cd test
lunit.sh -i $HOME/.lua/lua test.lua