From 02c9c35e650c93191b0cda76251765f03f15fa7c Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Thu, 21 Sep 2017 18:44:10 +0200 Subject: add coveralls.io support --- .gitignore | 3 +++ .travis.yml | 3 +++ README.md | 1 + 3 files changed, 7 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..abad166 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +luacov.report.out +luacov.stats.out + diff --git a/.travis.yml b/.travis.yml index 5628fd1..525a299 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,12 +20,15 @@ before_install: install: - luarocks install luacheck + - luarocks install luacov-coveralls script: - luacheck --codes --std=max *.lua - lua valua-test.lua after_success: + - lua -lluacov valua-test.lua + - luacov-coveralls notifications: email: diff --git a/README.md b/README.md index d590fcf..81710d7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ ##Valua - Validation for Lua [![Build Status](https://travis-ci.org/sailorproject/valua.svg?branch=master)](https://travis-ci.org/sailorproject/valua) +[![Coverage Status](https://coveralls.io/repos/github/sailorproject/valua/badge.svg?branch=master)](https://coveralls.io/github/sailorproject/valua?branch=master) A module for making chained validations. Create your objects, append your tests, use and reuse it! -- cgit v1.2.3-54-g00ecf