0

我有一个项目,它可以构建、运行单元测试并生成覆盖率报告。失败的最后一部分是将报告从 Travis 上传到 Codecov。它可以在我的 Windows PC 上本地运行。

特拉维斯配置

language: csharp
solution: ./Backend/Sppd.TeamTuner.sln
mono: latest
dist: xenial
dotnet: 2.2

script:
- ./build.sh --target Run-Upload-All-Tests

蛋糕脚本的失败部分:

#tool nuget:?package=Codecov&version=1.4.0
#addin nuget:?package=Cake.Codecov&version=0.6.0

Task("Upload-Coverage")
    .Does(() =>
{
    Codecov($"{testCoverageResults}/{unitTestResultsFileName}", "x");
    Codecov($"{testCoverageResults}/{integrationTestResultsFileName}", "x");
    Codecov($"{testCoverageResults}/{apiTestResultsFileName}", "x");
});

构建失败:run-detectors: unable to find an interpreter for /home/travis/build/taconaut/Sppd.TeamTuner/tools/Codecov.1.4.0/tools/codecov.exe

这是我能影响的吗?我不确定这是否与操作系统、Travis、Codecov、Cake.Codecov 或我应该添加的参考有关。

它从powershell运行良好:

              _____          _
             / ____|        | |
            | |     ___   __| | ___  ___ _____   __
            | |    / _ \ / _  |/ _ \/ __/ _ \ \ / /
            | |___| (_) | (_| |  __/ (_| (_) \ V /
             \_____\___/ \____|\___|\___\___/ \_/
                                         exe-1.4.0

2019-05-05 19:33:39 WRN No CI detected.
2019-05-05 19:33:39 INF Git detected.
2019-05-05 19:33:40 INF Project root: E:\dev\Sppd.TeamTuner
2019-05-05 19:33:40 INF Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml
2019-05-05 19:33:40 INF Reading reports.
2019-05-05 19:33:40 INF E:/dev/Sppd.TeamTuner/coverage-results/coverage-results-api.opencover.xml
2019-05-05 19:33:40 INF Uploading Reports.
2019-05-05 19:33:41 INF url: https://codecov.io
2019-05-05 19:33:41 INF query: https://codecov.io/upload/v4?branch=feature/coverlet-support&commit=94dec25c4111330a6d29a813105461b216fde473&build=&tag=&pr=&name=&flags=&slug=taconaut%2FSppd.TeamTuner&package=exe-1.4.0&build_url=&yaml=&job=&service=
2019-05-05 19:33:41 INF Pinging Codecov
2019-05-05 19:33:44 INF Uploading to S3 https://codecov.io
2019-05-05 19:33:44 INF View reports at: https://codecov.io/github/taconaut/Sppd.TeamTuner/commit/94dec25c4111330a6d29a813105461b216fde473
4

0 回答 0