Skip to content

Commit

Permalink
Merge 4d0d2b7 into 74c22d3
Browse files Browse the repository at this point in the history
  • Loading branch information
nhartland authored Jul 5, 2018
2 parents 74c22d3 + 4d0d2b7 commit 10768fd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .luacov
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
return {
["exclude"] = { 'luaunit.lua' },
["include"] = { 'forma/*' },
}
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ before_install:
- pip install hererocks
- hererocks env --$LUA -rlatest
- source env/bin/activate
- luarocks install luaunit
- luarocks install luacov
- luarocks install ldoc
- luarocks install luaunit
- luarocks install luacov-coveralls

script:
- lua -lluacov tests/run.lua -o TAP
- ./tests/run_examples.sh
- ldoc --output contents --dir docs .
- lua -lluacov tests/run.lua

after_success:
- luacov-coveralls -v --exclude luaunit.lua
5 changes: 1 addition & 4 deletions run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@
LUA=${LUA:=luajit}

# Run luaunit tests
$LUA -lluacov tests/run.lua -o TAP
$LUA tests/run.lua -o TAP
if [ $? -ne 0 ]; then
exit $?
fi

# Generate luacov report
luacov && rm luacov.stats.out

echo "Running examples"
for example in ./examples/*.lua; do
$LUA "$example" > /dev/null
Expand Down

0 comments on commit 10768fd

Please sign in to comment.