请问老师:我在前一步使用istanbul 运行成功,使用codecov后一步git push提交失败,看问题是没有运行Istanbul权限

来源:8-4 持续集成

慕侠0355299

2018-09-13

运行结果log片段
testing@1.0.0 cover /home/travis/build/wangxinwei18/testing

istanbul cover ./node_modules/mocha/bin/_mocha --reporter test/mocha.js
sh: 1: istanbul: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! testing@1.0.0 cover: istanbul cover ./node_modules/mocha/bin/_mocha --reporter test/mocha.js
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the testing@1.0.0 cover 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! /home/travis/.npm/_logs/2018-09-13T05_09_47_452Z-debug.log
travis_time?11991eb4:start=1536815387128727106,finish=1536815387461489968,duration=332762862
[0K
[31;1mThe command “npm run cover” exited with 126.[0m
travis_time:start:0171bfbe
[0K$ codecov

观察 travis-ci控制台报:
no environment variables set
但是我已经把codecov获得的CODECOV_TOKEN=“xxxxxxxxxx”设立在CI环境了

写回答

2回答

慕侠0355299

提问者

2018-09-17

我自己又查一下,原因是将 .travis.yml 错写成为 travis.yml

更正后正确。

1
0

Samaritan

2018-09-15

这个问题我之前还真没遇到过,可以贴一下具体的代码吗

0
0

Node.js入门到企业Web开发中的应用

Node.js是Web应用开发的一个福音,特别适合中小型系统的快速开发!

1580 学习 · 303 问题

查看课程