php-coveralls: Problems with Travis CI environment variables "Requirements are not satisfied."

I have problem with Travis CI integration

$ php vendor/bin/coveralls -v
Load coverage clover log:
  - /home/travis/build/Mahout/Mahout/build/artifacts/logs/clover.xml
Found 3 source files:
  - 100.00% Mahout/Request.php
  - 100.00% Mahout/Utils.php
  - 100.00% Mahout/Utils/KeySpaceConstrainedParams.php
Coverage: 100.00% (192/192)
Collect git info
Read environment variables
Requirements are not satisfied.
  - TRAVIS='true'
  - TRAVIS_JOB_ID='18683918'
  - CI_NAME='travis-ci'
  - COVERALLS_REPO_TOKEN='EEqvgAJ379f5x05BlyQo87E7oYC3kzh0t'
Set environment variables properly like the following.
For Travis users:
  - TRAVIS
  - TRAVIS_JOB_ID
For CircleCI users:
  - CIRCLECI
  - CIRCLE_BUILD_NUM
  - COVERALLS_REPO_TOKEN
For Jenkins users:
  - JENKINS_URL
  - BUILD_NUMBER
  - COVERALLS_REPO_TOKEN
From local environment:
  - COVERALLS_RUN_LOCALLY
  - COVERALLS_REPO_TOKEN
elapsed time: 0.071 sec memory: 4.25 MB

Job url: https://travis-ci.org/Mahout/Mahout/jobs/18683918 Github url: http://github.com/Mahout/Mahout/

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 17 (2 by maintainers)

Commits related to this issue

Most upvoted comments

This issue has confused me quite a bit. I have posted here twice, deleting both stupid comments. My issue was that my new fancy --rootdir flag had caused my coveralls.yml to go “missing” and I hadn’t separated the two problems.

The code comments say setting CI_BUILD_NUMBER is required but this is not provided by Travis. So The solution proposed works to fix the problem. I think there may be other missing variables, too. Here’s what I’m using today with success:

export CI_BUILD_NUMBER="$TRAVIS_BUILD_NUMBER"
export CI_PULL_REQUEST="$TRAVIS_PULL_REQUEST"
export CI_BRANCH="$TRAVIS_BRANCH"

If you are missing a build number or PR # on Coveralls.io perhaps look into these vars further.

Same issue here. For now I fixed it by adding COVERALLS_RUN_LOCALLY=1 to the travis build environment variables. Of course now the travis build numbers are ignored but I can live with that