aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEtiene Dalcol <Etiene@users.noreply.github.com>2017-09-22 16:47:57 +0100
committerGitHub <noreply@github.com>2017-09-22 16:47:57 +0100
commit6fac5331dacc22203325c083a99fe5bdae33f568 (patch)
tree1d0ed17240103b620c353e4a112ac8b29f9307d3
parent2228b01ec970d39fe222fed78c46c3dc81b5523e (diff)
parent02c9c35e650c93191b0cda76251765f03f15fa7c (diff)
downloadvalua-6fac5331dacc22203325c083a99fe5bdae33f568.tar.gz
valua-6fac5331dacc22203325c083a99fe5bdae33f568.tar.bz2
valua-6fac5331dacc22203325c083a99fe5bdae33f568.zip
Merge pull request #17 from fperrad/coverage
add coveralls.io support
-rw-r--r--.gitignore3
-rw-r--r--.travis.yml3
-rw-r--r--README.md1
3 files changed, 7 insertions, 0 deletions
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 df83e88..3cd431f 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 --ignore 211/_ENV
- lua valua-test.lua
after_success:
+ - lua -lluacov valua-test.lua
+ - luacov-coveralls
notifications:
email:
diff --git a/README.md b/README.md
index e45ff0b..25a44c6 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!