Travis-CI is convenient. But it's a shame that Python 3.3 isn't supported at this stage.
But Python 3.3 is easy to install, so if you're already using tox or a project, using tox
will reduce the number of builds rather than writing multiple versions of Python in .travis.yml
. Also recommended as soon as possible.
Since Travis-CI's server has PPAs registered for many versions of Python, Python-3.3 can also be installed with apt-get.
language: python
python:
- 2.7
install:
- sudo apt-get update -qq
- sudo apt-get install -q python3.3-dev
It's already in Python 2.7's virtualenv, so let's install and run tox there.
The Travis manual recommends using the --use-mirrors
option of pip install, so let's also set the environment variables so that they are used properly in tox.
language: python
python:
- 2.7
env:
- PIP_USE_MIRRORS=true
install:
- sudo apt-get update -qq
- sudo apt-get install -q python3.3-dev
- pip install --use-mirrors tox
script: "tox"
Recommended Posts