diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-25 12:51:58 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-25 12:51:58 -0300 |
commit | 836898f2b0cd2a71fac04c4f7e6fb547f112162f (patch) | |
tree | 3e9589539a54266ed6fe3ee741040e1b61c25490 | |
parent | b5244bea7814d035173307e2d263fade854cf685 (diff) | |
download | luarocks-836898f2b0cd2a71fac04c4f7e6fb547f112162f.tar.gz luarocks-836898f2b0cd2a71fac04c4f7e6fb547f112162f.tar.bz2 luarocks-836898f2b0cd2a71fac04c4f7e6fb547f112162f.zip |
Let's try Coveralls
-rwxr-xr-x | test/testing.sh | 9 |
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" | |||
40 | testing_cache="$testing_dir/testing_cache-$luaversion" | 40 | testing_cache="$testing_dir/testing_cache-$luaversion" |
41 | testing_server="$testing_dir/testing_server-$luaversion" | 41 | testing_server="$testing_dir/testing_server-$luaversion" |
42 | 42 | ||
43 | |||
44 | if [ "$1" == "--clean" ] | 43 | if [ "$1" == "--clean" ] |
45 | then | 44 | then |
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 | ||
528 | if [ "$travis" ] | 530 | if [ "$travis" ] |
529 | then | 531 | then |
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 |
531 | else | 534 | else |
532 | cat "$testing_dir/luacov.report.out" | 535 | cat "$testing_dir/luacov.report.out" |