memo.xight.org

日々のメモ

カテゴリ : Travis CI

1ページ目 / 全1ページ

Lua Testing with Busted and Travis-CI

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 Lawson
http://thejacklawson.com/2012/09/lua-testing-with-busted-and-travis-ci/