From 5131a2806766393b906367bb4fe1ad631f465a25 Mon Sep 17 00:00:00 2001 From: Ignacio BurgueƱo Date: Thu, 21 Jan 2016 14:08:20 -0300 Subject: Adds coverage Begin work adding coverage. --- .travis.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7829ae4..4b179c3 100644 --- a/.travis.yml +++ b/.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: -- cgit v1.2.3-55-g6feb