mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-22 02:53:06 +00:00
Adds coverage
Begin work adding coverage.
This commit is contained in:
17
.travis.yml
17
.travis.yml
@@ -1,5 +1,7 @@
|
|||||||
language: c
|
language: c
|
||||||
|
|
||||||
|
sudo: false
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- LUAROCKS=2.3.0
|
- LUAROCKS=2.3.0
|
||||||
@@ -9,23 +11,22 @@ env:
|
|||||||
- LUA=lua5.3
|
- LUA=lua5.3
|
||||||
- LUA=luajit
|
- LUA=luajit
|
||||||
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- bash .travis/setup_lua.sh
|
- bash .travis/setenv_lua.sh
|
||||||
- sudo pip install cpp-coveralls
|
- pip install cpp-coveralls
|
||||||
|
- luarocks install Lua-cURL --server=https://luarocks.org/dev
|
||||||
|
- luarocks install luacov-coveralls --server=https://luarocks.org/dev
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- sudo luarocks make rockspecs/luafilesystem-cvs-3.rockspec CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="-shared --coverage"
|
- luarocks make rockspecs/luafilesystem-cvs-3.rockspec CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="-shared --coverage"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cd tests
|
- cd tests
|
||||||
- sudo lua test.lua
|
- sudo lua test.lua
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- coveralls -b .. -r .. -E usr
|
- coveralls -b .. -r .. -i ./src --dump c.report.json
|
||||||
|
- luacov-coveralls -j c.report.json -v
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
|
|||||||
Reference in New Issue
Block a user