mercredi 4 mars 2015

Can I use travis-ci to test against specific (including minor number) version of python?

If you have this in your .travis.yml file:



language: python
python:
- 2.7


Your code will be tested against python 2.7.9:



$ source ~/virtualenv/python2.7/bin/activate
$ python --version
Python 2.7.9


But Python 2.7.9 breaks urllib3 (http://ift.tt/1AItEbu) and gevent (http://ift.tt/1BHwKSR). I guess this is why the latest Ubuntu still ships with Python 2.7.6.


For these reasons I really need to test my library against python >=2.7 but <2.7.9, is it possible to somehow specify minor python version in .travis.yml? I've tried:



python:
- 2.7.6


but it doesn't work. Any ideas?


Aucun commentaire:

Enregistrer un commentaire