Travis-ci 在 python2.6、python3.3 和 pypy 上使用 tox 失败

Travis-ci with tox failing on python2.6, python3.3 and pypy

我刚刚提交了一个看似无趣的提交,更新了 pypi 的发行说明和设置。 travis-ci 构建失败但是 运行 tox with py26, py33 and pypy:

https://travis-ci.org/Turbo87/aerofiles

1.13s$ tox -e $TOX_ENV -- --cov aerofiles --cov-report term-missing
py26 create: /home/travis/build/Turbo87/aerofiles/.tox/py26
ERROR: InterpreterNotFound: python2.6

我没有对 travis.yml 进行任何更改,tox 已在 1.7.2 版本中修复:

language: python
python: 2.7

sudo: false

env:
  - TOX_ENV=py26
  - TOX_ENV=py27
  - TOX_ENV=py33
  - TOX_ENV=py34
  - TOX_ENV=pypy

install:
  # Install tox and flake8 style checker    
  - pip install tox==1.7.2 flake8==2.1.0

script:
  # Run the library through flake8
  - flake8 --exclude=".git,docs" --ignore=E501 .

  # Run the unit test suite
  - tox -e $TOX_ENV --  --cov aerofiles --cov-report term-missing

如果有人能帮忙就太好了。我对 travis-ci(和 tox)很陌生,目前它是一个黑盒子。

几周前,正是因为这个问题,我被迫更改了所有 .travis.yml。参见 my commit。而不是

env:
  - TOXENV=py27
  - TOXENV=py34

matrix:
  include:
  - python: "2.7"
    env: TOXENV=py27
  - python: "3.4"
    env: TOXENV=py34