繁体   English   中英

简单的Travis-CI BUILD提供“未设置环境变量”

[英]Simple Travis-CI BUILD gives “no environment variables set”

我正在尝试使用travis进行首次构建。 我以为我的.travis.yml很简单。

这是我的.travis.yml

language: python
python:
  - "3.6"
  - "3.7"
# command to install dependencies
install:
  - pip install .
# command to run tests
script:
 - pytest

构建似乎没有问题,但是令人惊讶的是,travis界面显示失败,并显示“未设置环境变量”:

构建失败的屏幕截图

(链接到travis版本): https : //travis-ci.org/DataReply/persistable/builds/449064588

我无法从文档中了解信息,也无法在网上找到有关为什么会发生这种情况的提示,因此我不得不在这里询问。 谢谢。

单击构建作业以查看完整的控制台输出。 您会注意到构建失败,因为未定义测试(在这种情况下,pytest以非零退出代码退出: The command "pytest" exited with 5. )。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM