使用travis ci进行coveralls同步时,会出现如下错误:
Collect git info
Read environment variables
Requirements are not satisfied.
- TRAVIS='true'
- TRAVIS_JOB_ID='18683918'
- CI_NAME='travis-ci'
- COVERALLS_REPO_TOKEN='[security]'
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
解决方法:
在脚本中添加如下几行命令即可:
after_success:
- export CI_BUILD_NUMBER="$TRAVIS_BUILD_NUMBER"
- export CI_PULL_REQUEST="$TRAVIS_PULL_REQUEST"
- export CI_BRANCH="$TRAVIS_BRANCH"
- travis_retry php vendor/bin/php-coveralls -v

,
Trackback

no comment untill now

Add your comment now