gpt4 book ai didi

python - Travis CI 允许各种 python 版本的多个失败

转载 作者:行者123 更新时间:2023-12-04 18:03:21 26 4
gpt4 key购买 nike

我有以下 .travis.yml,我希望它允许在 python 2.6、2.7 和 nightly 上失败。出于某种原因,它只承认 nightly 允许失败,并且由于 2.6 失败而导致构建失败。

我猜它可能是默认设置,它根本无法识别我的 allow_failures 部分。travis-lint 不会产生任何错误。

有什么问题吗?

language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "nightly"
matrix:
allow_failures:
- python: 2.6
- python: 2.7
- python: nightly
# command to install dependencies
install:
- "python setup.py develop"
# command to run tests
script: py.test -v mandelbrot

最佳答案

matrix 元素下的 allow_failures 元素似乎只适用于 matrix 中定义的内容 - 现在我明白了

修复:

matrix:
include:
- python: "2.6"
- python: "2.7"
- python: "3.2"
- python: "3.3"
- python: "3.4"
- python: "nightly"
allow_failures:
- python: "2.6"
- python: "3.2"
- python: "nightly"

关于python - Travis CI 允许各种 python 版本的多个失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31454588/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com