language: cpp

compiler:
    - gcc
    - clang

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
    
before_install:
    - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
    - sudo apt-get -qq update
    - if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
    - 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

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

before_install:
    - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
    - sudo apt-get -qq update
    - if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
    - 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

Migrate from legacy to container-based infrastructure
Migrate from legacy to container-based infrastructure

See https://docs.travis-ci.com/user/migrating-from-legacy/?utm_source=legacy-notice&utm_medium=banner&utm_campaign=legacy-upgrade
