Я пытаюсь изучить рабочий процесс CI / CD с помощью примера проекта nodejs. Сборка Travis прошла успешно, но Codecov не показывает никаких отчетов. Вот репозиторий github .
Отчет кодеков
Package.json:
{
"main": "src/index.js",
"scripts": {
"commit": "git-cz",
"check-coverage": "istanbul check-coverage --statements 100 --branches 100 --functions 100 --lines 100",
"report-coverage": "cat ./coverage/lcove.info | codecov",
"test": "mocha src/index.test.js -w",
"test:single": "istanbul cover -x '**/*.test.js' _mocha -- -R spec src/index.test.js",
"travis-deploy-once": "travis-deploy-once",
"semantic-release": "semantic-release"
},
"devDependencies": {
"chai": "4.1.2",
"codecov.io": "0.1.6",
"commitizen": "2.10.1",
"cz-conventional-changelog": "2.1.0",
"ghooks": "2.0.4",
"istanbul": "0.4.5",
"mocha": "5.2.0",
"semantic-release": "^15.9.12",
"travis-deploy-once": "^5.0.7"
},
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
},
"ghooks": {
"pre-commit": "npm run test:single && npm run check-coverage"
}
}
}
.travis.yml:
language: node_js
cache:
directories:
- ~/.npm
notifications:
email: false
node_js:
- "10"
- "9"
- "8"
- "6"
script:
- npm run test:single
- npm run check-coverage
after_success:
- npm run report-coverage
- npm run travis-deploy-once "npm run semantic-release"
branches:
except:
- /^v\d+\.\d+\.\d+$/
Локально работающий npm запускает отчет о покрытии, выплевывает следующий журнал:
Локально работающий npm run report-coverage
выдает следующий журнал:
> rs-starwars-names@0.0.0-development report-coverage /Users/.../starwars-names
> cat ./coverage/lcove.info | codecov
cat: ./coverage/lcove.info: No such file or directory
/Users/.../starwars-names/node_modules/codecov.io/lib/getConfiguration.js:27
throw new Error("unknown service. could not get configuration");
^
Error: unknown service. could not get configuration
at module.exports (/Users/.../starwars-names/node_modules/codecov.io/lib/getConfiguration.js:27:13)
at sendToCodecov (/Users/.../starwars-names/node_modules/codecov.io/lib/sendToCodeCov.io.js:11:15)
at Socket.<anonymous> (/Users/.../starwars-names/node_modules/codecov.io/bin/codecov.io.js:14:5)
at emitNone (events.js:111:20)
at Socket.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rs-starwars-names@0.0.0-development report-coverage: `cat ./coverage/lcove.info | codecov`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the rs-starwars-names@0.0.0-development report-coverage script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ravisoni/.npm/_logs/2018-09-07T11_36_37_447Z-debug.log
Что здесь не так?