# Refer to https://github.com/kikito/middleclass as reference
language: python
sudo: false

env:
  - LUA="lua=5.1"
  - LUA="luajit=2.0"
  - LUA="luajit=2.1"
#  - LUA="lua=5.2" TODO: Figure out cjson.safe
#  - LUA="lua=5.3"

before_install:
  - pip install hererocks gunicorn httpbin
  - hererocks lua_install -r^ --$LUA
  - export PATH=$PATH:$PWD/lua_install/bin # Add directory with all installed binaries to PATH

install:
  - luarocks install luacheck
  - luarocks install busted
  - luarocks install luacov
  - luarocks install luacov-coveralls
  - travis/install_deps.sh

script:
  - luacheck --std max+busted src tests
  - travis/run_tests.sh

after_success:
  - luacov-coveralls --exclude $TRAVIS_BUILD_DIR/lua_install

# Refer to https://github.com/kikito/middleclass as reference
language: python
sudo: false

env:
  - LUA="lua=5.1"
  - LUA="luajit=2.0"
  - LUA="luajit=2.1"
#  - LUA="lua=5.2" TODO: Figure out cjson.safe
#  - LUA="lua=5.3"

before_install:
  - pip install hererocks gunicorn httpbin
  - hererocks lua_install -r^ --$LUA
  - export PATH=$PATH:$PWD/lua_install/bin # Add directory with all installed binaries to PATH

install:
  - luarocks install luacheck
  - luarocks install busted
  - luarocks install luacov
  - luarocks install luacov-coveralls
  - travis/install_deps.sh

script:
  - luacheck --std max+busted src tests
  - travis/run_tests.sh

after_success:
  - luacov-coveralls --exclude lua_install

Fix coveralls coverage to not include luarocks and dependencies
Fix coveralls coverage to not include luarocks and dependencies
