I've got a project which builds, runs unit tests and generates coverage reports set up. The last part which is failing is to upload the reports to Codecov from Travis. It works locally from my Windows PC.
language: csharp
solution: ./Backend/Sppd.TeamTuner.sln
mono: latest
dist: xenial
dotnet: 2.2
script:
- ./build.sh --target Run-Upload-All-Tests
Failing part of 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");
});
The build fails with: run-detectors: unable to find an interpreter for /home/travis/build/taconaut/Sppd.TeamTuner/tools/Codecov.1.4.0/tools/codecov.exe
Is this something I can influence? I'm unsure if this has something to do with the OS, Travis, Codecov, Cake.Codecov or a reference I should add.
It runs fine from 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