我在Windows上的python项目中使用codecov,但当我尝试将覆盖率报告上载到codecove服务器时,出现以下错误:
The filename, directory name, or volume label syntax is incorrect.
D:\foo>codecov -t ***
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _ |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \____|\___|\___\___/ \_/
v2.0.15
[90m==>[0m Detecting CI provider
-> Got branch from git/hg
-> Got sha from git/hg
[90m==>[0m Preparing upload
The filename, directory name, or volume label syntax is incorrect.
Error running `cd 'D:\foo' && git ls-files`: None
[41mError:[0m[91m Missing repository upload token[0m
[42mTip:[0m[32m See all example repositories: https://github.com/codecov?query=example[0m
[92mSupport channels:[0m
Email: hello@codecov.io
IRC: #codecov
Gitter: https://gitter.im/codecov/support
Twitter: @codecov
然而
如果我运行codecov
表单WSL(Linux)(来自同一个repo,使用相同的报告),一切都很好
更新
codecov 2.0.10可以成功上传,从2.0.11我得到这个文件名、目录名或卷标语法不正确错误
使用
file
开关提供覆盖率报告文件(默认情况下为coverage.xml)。在这种情况下,codecov不会搜索文件,也不会崩溃codecov no-color -X gcov file coverage.xml
(我建议禁用
no-color
和gcov-X gcov
着色,以减少不必要的错误。)更新
此问题有一个修复程序: https://github.com/codecov/codecov-python/issues/167
相关问题 更多 >
编程相关推荐