Summary
Luaのユニットテストツール Busted を使って Travis CIと連携する方法spec/module_spec.lua にテストコードを記述し、
% busted spec
でテストができるようにしておく
language: erlang
env:
- LUA=""
- LUA="luajit"
branches:
only:
- master
- develop
install:
- sudo apt-get install luajit
- sudo apt-get install luarocks
- sudo luarocks install luafilesystem
- sudo luarocks install busted
- sudo luarocks install XXXXXXXXX (必要なライブラリ)
script: "busted spec"
notifications:
webhooks:
- http://example.com/travis-results
recipients:
- user@example.com
email:
on_success: change
on_failure: always
Reference
Lua Testing with Busted and Travis-CI | A Suffusion of Coffee - Jack Lawsonhttp://thejacklawson.com/2012/09/lua-testing-with-busted-and-travis-ci/