[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua and Travis
- From: "Gary V. Vaughan" <gary@...>
- Date: Wed, 8 May 2013 20:53:11 +0700
On 8 May 2013, at 20:42, Choonster TheMage <email@example.com> wrote:
> I've written a Lua library in C and I'm trying to use Travis CI
> to test it against Lua 5.1, 5.2 and LuaJIT with every commit to the
> GitHub repo.
> I've managed to get it working with Lua 5.1.4 (which the LuaRocks
> package installs and makes available as `lua`), but the LuaJIT package
> doesn't seem to provide a `luajit` command.
> My current Travis config file can be found at .
> Does anyone have experience using Travis with Lua or know how to achieve this?
>  https://github.com/Choonster/lua_bufflib
>  http://travis-ci.org/
>  https://github.com/Choonster/lua_bufflib/blob/master/.travis.yml
I am converting all the GitHub hosted Lua projects I'm involved with to Travis,
and it's proven fiddly enough that I've added .travis.yml generation to the
release framework they share (slingshot - also a multi-interpreter Travis client):
Unfortunately, each time I've added a new project, slingshot has needed additional
tweaks, but I'd be very happy to accept patches/pull-requests and help with any
problems you encounter.
Either way, you're already on the right lines with your .travis.yml... but it's
much fiddlier than you realise!
[P.S. Slingshot also handles making LuaRocks, and keeping a release branch up to
date... when I've ironed out the remaining rough edges I'll submit it as a
Gary V. Vaughan (gary AT vaughan DOT pe)