language: c

sudo: required

services:
    - memcached

before_install:
    - sudo add-apt-repository -y ppa:ondrej/php5
    - sudo apt-get -q update
    - sudo apt-get install -y libmemcached-dev

env:
    - LUA_VERSION=5.1.5
    - LUA_IMPL=luajit LUA_VERSION=2.0.4
    - LUA_IMPL=luajit LUA_VERSION=2.1.0-beta1

install:
    - make env PLATFORM=linux LUA_IMPL=$LUA_IMPL LUA_VERSION=$LUA_VERSION

script:
    - make lib LIBMEMCACHED_DIR=/usr
    - make test
    - make qa

language: c

sudo: required

services:
    - memcached

before_install:
    - sudo apt-get remove --auto-remove -yqq libmemcached-dev
    - sudo add-apt-repository -y ppa:ondrej/php5
    - sudo apt-get -qq update
    - sudo apt-get install -yqq libmemcached-dev

env:
    - LUA_VERSION=5.1.5
    - LUA_IMPL=luajit LUA_VERSION=2.0.4
    - LUA_IMPL=luajit LUA_VERSION=2.1.0-beta1

install:
    - make env PLATFORM=linux LUA_IMPL=$LUA_IMPL LUA_VERSION=$LUA_VERSION

script:
    - make lib LIBMEMCACHED_DIR=/usr
    - make test
    - make qa

Remove system libmemcached-dev package before installing newer.
Remove system libmemcached-dev package before installing newer.
