Browse Source

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
Daniel Hahler 9 months ago
parent
commit
2b3707ccfc
No account linked to committer's email address
2 changed files with 3 additions and 2 deletions
  1. 1
    0
      .luacov
  2. 2
    2
      .travis.yml

+ 1
- 0
.luacov View File

@@ -10,6 +10,7 @@ end
10 10
 
11 11
 return {
12 12
     statsfile = build .. "/luacov.stats.out",
13
+    reportfile = build .. "/luacov.report.out",
13 14
 
14 15
     include = {
15 16
         escape_pattern(source) .. "/.+",

+ 2
- 2
.travis.yml View File

@@ -116,8 +116,8 @@ install:
116 116
       if [ "$DO_COVERAGE" = "codecov" ]; then
117 117
         test -f build/luacov.stats.out || { echo 'build/luacov.stats.out does not exist.'; return 1; }
118 118
         luacov || return 1
119
-        travis_retry bash /tmp/codecov-bash -X gcov -X coveragepy -c -F "$1,${LUANAME//./}" || return 1
120
-        rm build/luacov.stats.out
119
+        travis_retry bash /tmp/codecov-bash -f build/luacov.report.out -X gcov -X coveragepy -F "$1,${LUANAME//./}" || return 1
120
+        rm build/luacov.report.out build/luacov.stats.out
121 121
       fi
122 122
       return 0
123 123
     }

Loading…
Cancel
Save