language: cpp
sudo: false

compiler:
    - gcc
    - clang

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - gcc-4.8
    - g++-4.8

env:
    - LUA=lua5.1
    - LUA=luajit     # latest stable version (2.0.4)
    - LUA=luajit2.0  # current head of 2.0 branch
    - LUA=luajit2.1  # current head of 2.1 branch

install:
    - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
    - bash .travis/setup_lua.sh

before_script:
    - export LUA_DIR=$TRAVIS_BUILD_DIR/install/lua
    - cd tests
    - cmake . && make

script:
    - ctest -V

language: cpp
sudo: false

compiler:
    - gcc
    - clang

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - gcc-4.8
    - g++-4.8

env:
    - LUA=lua5.1
    - LUA=lua5.2
    - LUA=lua5.3
    - LUA=luajit     # latest stable version (2.0.4)
    - LUA=luajit2.0  # current head of 2.0 branch
    - LUA=luajit2.1  # current head of 2.1 branch

install:
    - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
    - bash .travis/setup_lua.sh

before_script:
    - export LUA_DIR=$TRAVIS_BUILD_DIR/install/lua
    - cd tests
    - cmake . && make

script:
    - ctest -V

Add more lua versions to test
Add more lua versions to test