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=luajit LUA_DEV=libluajit-5.1-dev LUA_VER=5.1 LUA_SFX=jit LUA_INCDIR=/usr/include/luajit-2.0
9 - 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
10 - 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
11 - 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
12 - 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
13 - 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
14 - 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
15 - 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
16 - 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
17 - 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
18 - 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
25 - if [ $LUA = "luajit" ]; then
26 sudo add-apt-repository ppa:mwild1/ppa -y && sudo apt-get update -y;
28 - sudo apt-get install $LUA
29 - sudo apt-get install $LUA_DEV
31 # Install a recent luarocks release
32 - wget http://luarocks.org/releases/$LUAROCKS_BASE.tar.gz
33 - tar zxvpf $LUAROCKS_BASE.tar.gz
36 --lua-version=$LUA_VER --lua-suffix=$LUA_SFX --with-lua-include="$LUA_INCDIR"
40 - cd $TRAVIS_BUILD_DIR
41 - sudo -E luarocks install lunit
42 - sudo -E luarocks install luafilesystem
43 - sudo -E luarocks install lpeg $LPEG
46 - make LUA_BIN=$LUA check