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
- try fixing coveralls https://github.com/satooshi/php-coveralls/issues/61 — committed to fenos/Notifynder by Gummibeer 8 years ago
- Try method from @buley on satooshi/php-coveralls#61. See: https://github.com/satooshi/php-coveralls/issues/61\#issuecomment-166434043 Signed-off-by: Fery Wardiyanto <ferywardiyanto@gmail.com> — committed to projek-xyz/slim-skeleton by feryardiant 8 years ago
- Workaround for coveralls bug #61 See https://github.com/php-coveralls/php-coveralls/issues/61 Change-Id: I3ecd95700616d5b684170d59d3409a9bd1d6ad92 — committed to wikimedia/mediawiki-extensions-WikibaseQualityConstraints by Ladsgroup 6 years ago
This issue has confused me quite a bit. I have posted here twice, deleting both stupid comments. My issue was that my new fancy
--rootdirflag had caused my coveralls.yml to go “missing” and I hadn’t separated the two problems.The code comments say setting
CI_BUILD_NUMBERis 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: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=1to the travis build environment variables. Of course now the travis build numbers are ignored but I can live with that