Simpler Travis CI matrix

This commit is contained in:
Jakub Warmuz
2015-01-28 12:56:12 +00:00
parent 5a46a1e32e
commit 0a44bbb7a1
3 changed files with 9 additions and 17 deletions
+2 -11
View File
@@ -1,15 +1,5 @@
# To mimic README.rst 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 language: python
python:
- "2.6"
- "2.7"
before_install: > before_install: >
travis_retry sudo apt-get install python python-setuptools travis_retry sudo apt-get install python python-setuptools
python-virtualenv python-dev gcc swig dialog libaugeas0 libssl-dev python-virtualenv python-dev gcc swig dialog libaugeas0 libssl-dev
@@ -18,7 +8,8 @@ install: travis_retry python setup.py dev # installs tox
script: travis_retry tox script: travis_retry tox
env: env:
- TOXENV=py${TRAVIS_PYTHON_VERSION//[.]/} - TOXENV=py26
- TOXENV=py27
- TOXENV=lint - TOXENV=lint
- TOXENV=cover - TOXENV=cover
+1 -2
View File
@@ -25,8 +25,7 @@ testing_extras = [
'coverage', 'coverage',
'nose', 'nose',
'nosexcover', 'nosexcover',
'pylint<1.4', # py2.6 compat, c.f #97 'pylint',
'astroid<1.3.0', # py2.6 compat, c.f. #187
'tox', 'tox',
] ]
+6 -4
View File
@@ -1,7 +1,6 @@
# Tox (http://tox.testrun.org/) is a tool for running tests # Tox (http://tox.testrun.org/) is a tool for running tests in
# in multiple virtualenvs. This configuration file will run the # multiple virtualenvs. To use it, "pip install tox" and then run
# test suite on all supported python versions. To use it, "pip install tox" # "tox" from this directory.
# and then run "tox" from this directory.
[tox] [tox]
envlist = py26,py27,cover,lint envlist = py26,py27,cover,lint
@@ -12,11 +11,14 @@ commands =
python setup.py test -q # -q does not suppress errors python setup.py test -q # -q does not suppress errors
[testenv:cover] [testenv:cover]
basepython = python2.7
commands = commands =
python setup.py dev python setup.py dev
python setup.py nosetests --with-coverage --cover-min-percentage=66 python setup.py nosetests --with-coverage --cover-min-percentage=66
[testenv:lint] [testenv:lint]
# recent versions of pylint do not support Python 2.6 (#97, #187)
basepython = python2.7
commands = commands =
python setup.py dev python setup.py dev
pylint --rcfile=.pylintrc letsencrypt pylint --rcfile=.pylintrc letsencrypt