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
|
||||
|
||||
sudo: false
|
||||
|
||||
env:
|
||||
global:
|
||||
- LUAROCKS=2.3.0
|
||||
@@ -9,23 +11,22 @@ env:
|
||||
- LUA=lua5.3
|
||||
- LUA=luajit
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
|
||||
before_install:
|
||||
- bash .travis/setup_lua.sh
|
||||
- sudo pip install cpp-coveralls
|
||||
- bash .travis/setenv_lua.sh
|
||||
- pip install cpp-coveralls
|
||||
- luarocks install Lua-cURL --server=https://luarocks.org/dev
|
||||
- luarocks install luacov-coveralls --server=https://luarocks.org/dev
|
||||
|
||||
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:
|
||||
- cd tests
|
||||
- sudo lua test.lua
|
||||
|
||||
after_success:
|
||||
- coveralls -b .. -r .. -E usr
|
||||
- coveralls -b .. -r .. -i ./src --dump c.report.json
|
||||
- luacov-coveralls -j c.report.json -v
|
||||
|
||||
notifications:
|
||||
email:
|
||||
|
||||
Reference in New Issue
Block a user