用蛋糕从Travis部署到Codecov

时间:2019-05-05 18:55:34

标签: travis-ci cakebuild codecov

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

Travis configuration

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

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

cake script的失败部分:

#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");
});

build失败,并显示: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

0 个答案:

没有答案