简单的 Travis-CI BUILD 给出 "no environment variables set"

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 界面显示失败 "no environment variables set":

build failed screenshot

(link 到 travis 构建): https://travis-ci.org/DataReply/persistable/builds/449064588

我无法从文档中理解或在网上找到有关为什么会发生这种情况的提示,所以我求助于此处询问。谢谢。

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