travis徽章无法显示构建状态正在通过
我尝试复制自述标记以显示我的构建状态,但仍继续在我的存储库上显示构建错误
my test scripts
"scripts": {
"start": "node ./build/app.js",
"test": "npm run db:unmigrate && npm run db:migrate && npm run db:seedAll && npm run testing",
"dev": "nodemon --exec babel-node app/app.js",
"db:migrate": "babel-node app/server/migrations/migrate.js",
"db:unmigrate": "babel-node app/server/migrations/unmigrate.js",
"db:seedAll": "babel-node app/server/seed/seedAll.js",
"testing": "nyc mocha --timeout 50000 -r esm --exit",
"clean": "rm -rf build && mkdir build",
"build": "npm run clean && npm run build-babel",
"build-babel": "babel -d ./build ./app -s",
"generate-lcov": "nyc report --reporter=text-lcov > lcov.info",
"codeclimate-coverage": "codeclimate-test-reporter < lcov.info",
"coveralls-coverage": "coveralls < lcov.info",
"coverage": "npm run test && npm run generate-lcov && npm run coveralls-coverage && npm run codeclimate-coverage"
},
my test are run on a npm run test command my travis.yml file is below am using elephant sql
language: node_js
node_js:
- "stable"
install: npm install
cache:
directories:
- "node_modules"
env:
- CODECLIMATE_REPO_TOKEN=be3fcca4d68c6d7f19c1ca6ba76517d6c01e6891b3
- NODE_ENV=TEST
- SECRET_KEY=nagasaki
after_success:
- npm run coverage
答案 0 :(得分:0)
我通过以下方式解决了该问题:将travis徽章从travis构建中复制到readme.md中,并将自述文件更改推送到github上的远程存储库中