diff options
author | Ignacio Burgueño <ignacio@users.noreply.github.com> | 2016-01-21 14:08:20 -0300 |
---|---|---|
committer | Ignacio Burgueño <ignacio@users.noreply.github.com> | 2016-01-21 14:08:20 -0300 |
commit | 5131a2806766393b906367bb4fe1ad631f465a25 (patch) | |
tree | ba73b71360e3d87139572b20680b611fb74c7026 | |
parent | 9e7f97ea4c7ec2a66b9ea1ef6c7dd068822b414d (diff) | |
download | luafilesystem-5131a2806766393b906367bb4fe1ad631f465a25.tar.gz luafilesystem-5131a2806766393b906367bb4fe1ad631f465a25.tar.bz2 luafilesystem-5131a2806766393b906367bb4fe1ad631f465a25.zip |
Adds coverage
Begin work adding coverage.
-rw-r--r-- | .travis.yml | 17 |
1 files 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 @@ | |||
1 | language: c | 1 | language: c |
2 | 2 | ||
3 | sudo: false | ||
4 | |||
3 | env: | 5 | env: |
4 | global: | 6 | global: |
5 | - LUAROCKS=2.3.0 | 7 | - LUAROCKS=2.3.0 |
@@ -9,23 +11,22 @@ env: | |||
9 | - LUA=lua5.3 | 11 | - LUA=lua5.3 |
10 | - LUA=luajit | 12 | - LUA=luajit |
11 | 13 | ||
12 | branches: | ||
13 | only: | ||
14 | - master | ||
15 | |||
16 | before_install: | 14 | before_install: |
17 | - bash .travis/setup_lua.sh | 15 | - bash .travis/setenv_lua.sh |
18 | - sudo pip install cpp-coveralls | 16 | - pip install cpp-coveralls |
17 | - luarocks install Lua-cURL --server=https://luarocks.org/dev | ||
18 | - luarocks install luacov-coveralls --server=https://luarocks.org/dev | ||
19 | 19 | ||
20 | install: | 20 | install: |
21 | - sudo luarocks make rockspecs/luafilesystem-cvs-3.rockspec CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="-shared --coverage" | 21 | - luarocks make rockspecs/luafilesystem-cvs-3.rockspec CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="-shared --coverage" |
22 | 22 | ||
23 | script: | 23 | script: |
24 | - cd tests | 24 | - cd tests |
25 | - sudo lua test.lua | 25 | - sudo lua test.lua |
26 | 26 | ||
27 | after_success: | 27 | after_success: |
28 | - coveralls -b .. -r .. -E usr | 28 | - coveralls -b .. -r .. -i ./src --dump c.report.json |
29 | - luacov-coveralls -j c.report.json -v | ||
29 | 30 | ||
30 | notifications: | 31 | notifications: |
31 | email: | 32 | email: |