5 - LUAROCKS_BASE=luarocks-2.2.0
7 - LPEG=0.7-3 LUA=lua5.1 LUA_DEV=liblua5.1-dev LUA_VER=5.1 LUA_SFX=5.1 LUA_INCDIR=/usr/include/lua5.1
8 - LPEG=0.7-3 LUA=lua5.2 LUA_DEV=liblua5.2-dev LUA_VER=5.2 LUA_SFX=5.2 LUA_INCDIR=/usr/include/lua5.2
9 - LPEG=0.7-3 LUA=luajit LUA_DEV=libluajit-5.1-dev LUA_VER=5.1 LUA_SFX=jit LUA_INCDIR=/usr/include/luajit-2.0
10 - LPEG=0.8.1-1 LUA=lua5.1 LUA_DEV=liblua5.1-dev LUA_VER=5.1 LUA_SFX=5.1 LUA_INCDIR=/usr/include/lua5.1
11 - LPEG=0.8.1-1 LUA=lua5.2 LUA_DEV=liblua5.2-dev LUA_VER=5.2 LUA_SFX=5.2 LUA_INCDIR=/usr/include/lua5.2
12 - LPEG=0.8.1-1 LUA=luajit LUA_DEV=libluajit-5.1-dev LUA_VER=5.1 LUA_SFX=jit LUA_INCDIR=/usr/include/luajit-2.0
13 - LPEG=0.9-1 LUA=lua5.1 LUA_DEV=liblua5.1-dev LUA_VER=5.1 LUA_SFX=5.1 LUA_INCDIR=/usr/include/lua5.1
14 - LPEG=0.9-1 LUA=lua5.2 LUA_DEV=liblua5.2-dev LUA_VER=5.2 LUA_SFX=5.2 LUA_INCDIR=/usr/include/lua5.2
15 - LPEG=0.9-1 LUA=luajit LUA_DEV=libluajit-5.1-dev LUA_VER=5.1 LUA_SFX=jit LUA_INCDIR=/usr/include/luajit-2.0
16 - LPEG=0.10.2-1 LUA=lua5.1 LUA_DEV=liblua5.1-dev LUA_VER=5.1 LUA_SFX=5.1 LUA_INCDIR=/usr/include/lua5.1
17 - LPEG=0.10.2-1 LUA=lua5.2 LUA_DEV=liblua5.2-dev LUA_VER=5.2 LUA_SFX=5.2 LUA_INCDIR=/usr/include/lua5.2
18 - LPEG=0.10.2-1 LUA=luajit LUA_DEV=libluajit-5.1-dev LUA_VER=5.1 LUA_SFX=jit LUA_INCDIR=/usr/include/luajit-2.0
19 - LPEG=0.12-1 LUA=lua5.1 LUA_DEV=liblua5.1-dev LUA_VER=5.1 LUA_SFX=5.1 LUA_INCDIR=/usr/include/lua5.1
20 - LPEG=0.12-1 LUA=lua5.2 LUA_DEV=liblua5.2-dev LUA_VER=5.2 LUA_SFX=5.2 LUA_INCDIR=/usr/include/lua5.2
21 - LPEG=0.12-1 LUA=luajit LUA_DEV=libluajit-5.1-dev LUA_VER=5.1 LUA_SFX=jit LUA_INCDIR=/usr/include/luajit-2.0
28 - if [ $LUA = "luajit" ]; then
29 sudo add-apt-repository ppa:mwild1/ppa -y && sudo apt-get update -y;
31 - sudo apt-get install $LUA
32 - sudo apt-get install $LUA_DEV
34 # Install a recent luarocks release
35 - wget http://luarocks.org/releases/$LUAROCKS_BASE.tar.gz
36 - tar zxvpf $LUAROCKS_BASE.tar.gz
39 --lua-version=$LUA_VER --lua-suffix=$LUA_SFX --with-lua-include="$LUA_INCDIR"
42 - cd $TRAVIS_BUILD_DIR
43 - sudo -E luarocks install lunit
44 - sudo -E luarocks install luafilesystem
45 - sudo -E luarocks install lpeg $LPEG
48 - make LUA_BIN=$LUA check