From 89e86606ea3341731b9ba6d9e7cba20d234fc4e2 Mon Sep 17 00:00:00 2001 From: Jakub Warmuz Date: Fri, 28 Nov 2014 22:02:07 +0100 Subject: [PATCH] Travis: multiple Python environments. --- .travis.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 66dadd738..5f4edef70 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,22 @@ +# To mimic README.md installation and hacking instructions as much as +# possible, this config file instructs Travis CI to create a build +# environment for each supported Python version, and then for each of +# those it runs tox with two environments: lint and pyXX corresponding +# to the currently used Travis CI build Python version. + language: python +python: + - "2.6" + - "2.7" + before_install: > travis_retry sudo apt-get install python python-setuptools python-virtualenv python-dev gcc swig dialog libaugeas0 libssl-dev -install: travis_retry python setup.py dev[testing] +install: travis_retry python setup.py dev[testing] # installs tox script: travis_retry tox env: - - TOX_ENV=py26 - - TOX_ENV=py27 + - TOX_ENV=py${TRAVIS_PYTHON_VERSION//[.]/} - TOX_ENV=lint