Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Coveralls not working with Appveyor

I have used 'appveyor tool' for building project and 'coveralls tool' for code coverage. my appveyor.yml file is like below. While executing the command the following error is thrown.

"Bad response: 422 {"message":"Couldn't find a repository matching this job.","error":true}** Command exited with code 1".

version: 1.0.{build}
pull_requests:
do_not_increment_build_number: true
configuration: Release
platform: Any CPU
environment:
  COVERALLS_SERVICE_NAME: appveyor
  nodejs_version: "0.10"
  COVERALLS_REPO_TOKEN:
  secure: 6tdds8x61Nm9X9NRdsdsd+hlU0iEyo8g+457eAJTisdhK14SERTfdfS7vsdOp1et+h
build_script: xyz
build:
project: .\Slack.Automation\Promact.ERP.sln
parallel: true
verbosity: minimal
test_script:
 - npm test
after_test:
 - node ./node_modules/coveralls/bin/coveralls.js < ./coverage/lcov.info 

So please give any solution.

like image 497
John Sinha Avatar asked Dec 20 '25 15:12

John Sinha


1 Answers

I believe that message Couldn't find a repository matching this job means that you are using token which is not tied to any repo in Coveralls.

Please try to do the folowing (assuming you are using GitHub):

  1. Add your repo to Coveralls using https://coveralls.io/repos/new if you did not add it before
  2. Open https://coveralls.io/github/your_account/your_project/settings and copy REPO TOKEN
  3. Encrypt this token with https://ci.appveyor.com/tools/encrypt and replace secure value of COVERALLS_REPO_TOKEN with this new encrypted value

--ilya.

like image 147
Ilya Finkelsheyn Avatar answered Dec 24 '25 05:12

Ilya Finkelsheyn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!