[英]Simple Travis-CI BUILD gives “no environment variables set”
I am trying to build with travis for the first time. 我正在尝试使用travis进行首次构建。 I thought my
.travis.yml
was simple enough. 我以为我的
.travis.yml
很简单。
Here is my .travis.yml 这是我的.travis.yml
language: python
python:
- "3.6"
- "3.7"
# command to install dependencies
install:
- pip install .
# command to run tests
script:
- pytest
The build seems to have no problems but surprisingly the travis interface shows failed with "no environment variables set": 构建似乎没有问题,但是令人惊讶的是,travis界面显示失败,并显示“未设置环境变量”:
build failed screenshot 构建失败的屏幕截图
(link to travis build): https://travis-ci.org/DataReply/persistable/builds/449064588 (链接到travis版本): https : //travis-ci.org/DataReply/persistable/builds/449064588
I cannot understand from the documentation or find hints online about why this happens so I've resorted to asking here. 我无法从文档中了解信息,也无法在网上找到有关为什么会发生这种情况的提示,因此我不得不在这里询问。 Thank you.
谢谢。
Click a build job to see the full console output. 单击构建作业以查看完整的控制台输出。 You'll notice that your build fails because there are no tests defined (and in that case pytest exits with a non-zero exit code:
The command "pytest" exited with 5.
). 您会注意到构建失败,因为未定义测试(在这种情况下,pytest以非零退出代码退出:
The command "pytest" exited with 5.
)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.