Indication of the exact Python version for Travis CI in combination with the toxin

I have the following .travis.yml:

language: python env: - TOXENV=py27 - TOXENV=py34 install: - pip install -U tox script: - tox 

and the following tox.ini:

 [tox] envlist = py27,py34 [testenv] commands = py.test tests/ deps = -rtests/test_requirements.txt 

I need Python 3.4.3, which is available from the time ago in Travis. How can I specify this exact version of Python in .travis.yml so that tox can use the correct version for the py34 environment?

+5
source share
1 answer

Inspired by pip .travis.yml , the easiest way is to define a Travis matrix with various environment variables:

 matrix: include: - python: 3.4.3 env: TOXENV=py34 - python: 2.7 env: TOXENV=py27 
+8
source

All Articles