Skip to content
For experiments with travis-ci
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis
rockspecs
src
test
.travis.yml
LICENSE
README.md

README.md

Build Status Coverage Status License

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

Codeship Status for moteus/lua-travis-example

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
You can’t perform that action at this time.