From 50a2bc5b45ff69bdbac5b6a639530b1678c24981 Mon Sep 17 00:00:00 2001 From: Tim Date: Sun, 12 Sep 2021 21:34:30 -0500 Subject: [PATCH 1/6] Fix directory for unit tests --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 65b252a..ef466c5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,9 @@ install: - luarocks install luacov - luarocks install luacov-coveralls +before_script: + - cd dice_test + script: - lua dice_test.lua -v --coverage From e1e8eadd088546c784096d5c1649b28211b6823c Mon Sep 17 00:00:00 2001 From: Tim Date: Sun, 12 Sep 2021 21:41:07 -0500 Subject: [PATCH 2/6] Fix unit test directory --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ef466c5..f89080a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,7 +20,7 @@ install: - luarocks install luacov-coveralls before_script: - - cd dice_test + - cd tests script: - lua dice_test.lua -v --coverage From 2c7e2107a257f0fe0731d2e5624570882f74f621 Mon Sep 17 00:00:00 2001 From: Tim Date: Sun, 12 Sep 2021 21:47:39 -0500 Subject: [PATCH 3/6] Remove --coverage arg from dice_test.lua --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f89080a..b9676e8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,7 @@ before_script: - cd tests script: - - lua dice_test.lua -v --coverage + - lua dice_test.lua -v after_success: - luacov-coveralls --exclude $TRAVIS_BUILD_DIR/lua_install From 811ba0eae0b46cfe6ee083512ed5626e582950c6 Mon Sep 17 00:00:00 2001 From: Tim Date: Sun, 12 Sep 2021 21:52:21 -0500 Subject: [PATCH 4/6] Remove tests for Lua 5.3 and 5.4 --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b9676e8..f570d3e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,8 +4,6 @@ sudo: false env: - LUA="lua=5.1" - LUA="lua=5.2" - - LUA="lua=5.3" - - LUA="lua=5.4" - LUA="luajit=2.0" - LUA="luajit=2.1" From 85f91a36b5b8ecf53def34a8d0d287adc20392b2 Mon Sep 17 00:00:00 2001 From: Tim Date: Sun, 12 Sep 2021 22:06:31 -0500 Subject: [PATCH 5/6] Add lluacov to dice_test.lua Test coveralls Fix it --- .travis.yml | 3 ++- README.md | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index f570d3e..7c35ca4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,10 +21,11 @@ before_script: - cd tests script: + - lua -v -lluacov dice_test.lua - lua dice_test.lua -v after_success: - - luacov-coveralls --exclude $TRAVIS_BUILD_DIR/lua_install + - luacov-coveralls -v --include dice.lua branches: only: diff --git a/README.md b/README.md index 76be64f..d149adc 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -[![Build Status](https://app.travis-ci.com/timothymtorres/RL-Dice.svg?branch=master)](https://app.travis-ci.com/timothymtorres/RL-Dice) -[![Coverage Status](https://coveralls.io/repos/github/timothymtorres/RL-Dice/badge.svg?branch=master)](https://coveralls.io/github/timothymtorres/RL-Dice?branch=master) +[![Build Status](https://app.travis-ci.com/timothymtorres/RL-Dice.svg)](https://app.travis-ci.com/timothymtorres/RL-Dice) +[![Coverage Status](https://coveralls.io/repos/github/timothymtorres/RL-Dice/badge.svg)](https://coveralls.io/github/timothymtorres/RL-Dice) [![github](https://img.shields.io/github/license/timothymtorres/RL-Dice.svg)](https://choosealicense.com/licenses/mit/) [![tags](https://img.shields.io/github/tag/timothymtorres/RL-dice.svg?label=version)](https://github.com/timothymtorres/RL-Dice/tags) [![commit](https://img.shields.io/github/last-commit/timothymtorres/rl-dice.svg)](https://github.com/timothymtorres/RL-Dice/commits/master) From 9c6e724ec129a82bec622d1fee4b8473903fad4c Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 15 Sep 2021 12:47:43 -0500 Subject: [PATCH 6/6] Add compatible section to README --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index d149adc..7084851 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,14 @@ RL-Dice A robust module to roll and manipulate roguelike dice. This has also been included in [rotLove](https://github.com/paulofmandown/rotLove) roguelike toolkit which I highly recommend if you plan on making a roguelike. +This library is compatible with: + +* Lua 5.1 +* Lua 5.2 +* Luajit 2.0 +* Luajit 2.1 +* Love2D + Consult the [online documentation](https://timothymtorres.github.io/RL-Dice) for the API and usage examples. The dice module provides the following: