From 2b3707ccfcd8c446f50d32898f3a38cbd8dd0130 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 10 Jan 2019 10:56:39 +0100 Subject: [PATCH] Travis: codecov: use -f with luacov output (#2563) - do not use `-c` to remove discovered file - configure path for luacov reportfile to also reside in build directory --- .luacov | 1 + .travis.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.luacov b/.luacov index ce1a0eeba..db23d4cc3 100644 --- a/.luacov +++ b/.luacov @@ -10,6 +10,7 @@ end return { statsfile = build .. "/luacov.stats.out", + reportfile = build .. "/luacov.report.out", include = { escape_pattern(source) .. "/.+", diff --git a/.travis.yml b/.travis.yml index de5fe9d92..e86da2f17 100644 --- a/.travis.yml +++ b/.travis.yml @@ -116,8 +116,8 @@ install: if [ "$DO_COVERAGE" = "codecov" ]; then test -f build/luacov.stats.out || { echo 'build/luacov.stats.out does not exist.'; return 1; } luacov || return 1 - travis_retry bash /tmp/codecov-bash -X gcov -X coveragepy -c -F "$1,${LUANAME//./}" || return 1 - rm build/luacov.stats.out + travis_retry bash /tmp/codecov-bash -f build/luacov.report.out -X gcov -X coveragepy -F "$1,${LUANAME//./}" || return 1 + rm build/luacov.report.out build/luacov.stats.out fi return 0 }