TravisCI在尝试运行拉取请求时收到此错误
coveralls.exception.CoverallsException: Not on TravisCI. You have to provide either repo_token in .coveralls.yml or set the COVERALLS_REPO_TOKEN env var. The command "docker-compose -f docker-compose.yml -f docker-compose.override.yml run -e COVERALLS_REPO_TOKEN web sh -c "coverage run ./src/manage.py test src && flake8 src && coveralls"" exited with 1.
但是,我确实在我的 TravisCI 中同时拥有COVERALLS_REPO_TOKEN
并repo_token
设置为环境变量,并且我知道它们是正确的,因为TravisCI 传递了我的开发分支并成功地将结果发送到 coveralls.io:
OK
Destroying test database for alias 'default'...
Submitting coverage to coveralls.io...
Coverage submitted!
Job ##40.1
https://coveralls.io/jobs/61852774
The command "docker-compose -f docker-compose.yml -f docker-compose.override.yml run -e COVERALLS_REPO_TOKEN web sh -c "coverage run ./src/manage.py test src && flake8 src && coveralls"" exited with 0.
如何让 TravisCI 识别我的 COVERALLS_REPO_TOKEN 以用于它运行的拉取请求?