aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-03-25 12:51:58 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-03-25 12:51:58 -0300
commit836898f2b0cd2a71fac04c4f7e6fb547f112162f (patch)
tree3e9589539a54266ed6fe3ee741040e1b61c25490
parentb5244bea7814d035173307e2d263fade854cf685 (diff)
downloadluarocks-836898f2b0cd2a71fac04c4f7e6fb547f112162f.tar.gz
luarocks-836898f2b0cd2a71fac04c4f7e6fb547f112162f.tar.bz2
luarocks-836898f2b0cd2a71fac04c4f7e6fb547f112162f.zip
Let's try Coveralls
-rwxr-xr-xtest/testing.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/testing.sh b/test/testing.sh
index dc72afaa..b92f5d99 100755
--- a/test/testing.sh
+++ b/test/testing.sh
@@ -40,7 +40,6 @@ testing_sys_tree_copy="$testing_dir/testing_sys_copy-$luaversion"
40testing_cache="$testing_dir/testing_cache-$luaversion" 40testing_cache="$testing_dir/testing_cache-$luaversion"
41testing_server="$testing_dir/testing_server-$luaversion" 41testing_server="$testing_dir/testing_server-$luaversion"
42 42
43
44if [ "$1" == "--clean" ] 43if [ "$1" == "--clean" ]
45then 44then
46 shift 45 shift
@@ -248,7 +247,9 @@ mkdir -p "$testing_server"
248 get "$luarocks_repo/lmathx-20120430.51-1.rockspec" 247 get "$luarocks_repo/lmathx-20120430.51-1.rockspec"
249 get "$luarocks_repo/lmathx-20120430.52-1.rockspec" 248 get "$luarocks_repo/lmathx-20120430.52-1.rockspec"
250 get "$luarocks_repo/lmathx-20140620-1.rockspec" 249 get "$luarocks_repo/lmathx-20140620-1.rockspec"
251 get "$luarocks_repo/lmathx-20140620-1.rockspec" 250 get "$luarocks_repo/lua-path-0.2.3-1.rockspec"
251 get "$luarocks_repo/lua-cjson-2.1.0-1.rockspec"
252 get "$luarocks_repo/luacov-coveralls-0.1.1-1.rockspec"
252) 253)
253$luarocks_admin_nocov make_manifest "$testing_server" 254$luarocks_admin_nocov make_manifest "$testing_server"
254 255
@@ -510,8 +511,9 @@ run_with_full_environment() {
510 511
511 local bitop= 512 local bitop=
512 [ "$luaversion" = "5.1.5" ] && bitop=luabitop 513 [ "$luaversion" = "5.1.5" ] && bitop=luabitop
514 [ "$travis" ] && luacov_coveralls=luacov-coveralls
513 515
514 build_environment luacov luafilesystem luasocket $bitop luaposix md5 lzlib 516 build_environment luacov $luacov_coveralls luafilesystem luasocket $bitop luaposix md5 lzlib
515 run_tests $1 517 run_tests $1
516} 518}
517 519
@@ -527,6 +529,7 @@ $testing_sys_tree/bin/luacov -c $testing_dir/luacov.config src/luarocks src/bin
527 529
528if [ "$travis" ] 530if [ "$travis" ]
529then 531then
532 $testing_sys_tree/bin/luacov-coveralls
530 grep "Summary" -B1 -A1000 $testing_dir/luacov.report.out 533 grep "Summary" -B1 -A1000 $testing_dir/luacov.report.out
531else 534else
532 cat "$testing_dir/luacov.report.out" 535 cat "$testing_dir/luacov.report.out"