updates travis to include coverage & static analysis

This commit is contained in:
kikito 2016-03-06 16:08:55 +01:00
parent 0d468cb70b
commit 74643aea09
2 changed files with 14 additions and 3 deletions

View File

@ -10,12 +10,21 @@ env:
before_install: before_install:
- pip install hererocks - pip install hererocks
- hererocks base -r^ --$LUA - hererocks lua_install -r^ --$LUA
- export PATH=$PATH:$PWD/base/bin # Add directory with all installed binaries to PATH - export PATH=$PATH:$PWD/lua_install/bin # Add directory with all installed binaries to PATH
install:
- luarocks install luacheck
- luarocks install busted - luarocks install busted
- luarocks install luacov
- luarocks install luacov-coveralls
script: script:
- busted -v - luacheck --std max+busted *.lua spec
- busted --verbose --coverage
after_success:
- luacov-coveralls --exclude $TRAVIS_BUILD_DIR/lua_install
branches: branches:
except: except:

View File

@ -2,6 +2,8 @@ inspect.lua
=========== ===========
[![Build Status](https://travis-ci.org/kikito/inspect.lua.png?branch=master)](https://travis-ci.org/kikito/inspect.lua) [![Build Status](https://travis-ci.org/kikito/inspect.lua.png?branch=master)](https://travis-ci.org/kikito/inspect.lua)
[![Coverage Status](https://coveralls.io/repos/github/kikito/inspect.lua/badge.svg?branch=master)](https://coveralls.io/github/kikito/inspect.lua?branch=master)
This library transforms any Lua value into a human-readable representation. It is especially useful for debugging errors in tables. This library transforms any Lua value into a human-readable representation. It is especially useful for debugging errors in tables.