mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 13:59:02 -04:00
Simpler Travis CI matrix
This commit is contained in:
parent
5a46a1e32e
commit
0a44bbb7a1
3 changed files with 9 additions and 17 deletions
13
.travis.yml
13
.travis.yml
|
|
@ -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
|
||||
|
||||
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
|
||||
|
|
@ -18,7 +8,8 @@ install: travis_retry python setup.py dev # installs tox
|
|||
script: travis_retry tox
|
||||
|
||||
env:
|
||||
- TOXENV=py${TRAVIS_PYTHON_VERSION//[.]/}
|
||||
- TOXENV=py26
|
||||
- TOXENV=py27
|
||||
- TOXENV=lint
|
||||
- TOXENV=cover
|
||||
|
||||
|
|
|
|||
3
setup.py
3
setup.py
|
|
@ -25,8 +25,7 @@ testing_extras = [
|
|||
'coverage',
|
||||
'nose',
|
||||
'nosexcover',
|
||||
'pylint<1.4', # py2.6 compat, c.f #97
|
||||
'astroid<1.3.0', # py2.6 compat, c.f. #187
|
||||
'pylint',
|
||||
'tox',
|
||||
]
|
||||
|
||||
|
|
|
|||
10
tox.ini
10
tox.ini
|
|
@ -1,7 +1,6 @@
|
|||
# Tox (http://tox.testrun.org/) is a tool for running tests
|
||||
# in multiple virtualenvs. This configuration file will run the
|
||||
# test suite on all supported python versions. To use it, "pip install tox"
|
||||
# and then run "tox" from this directory.
|
||||
# Tox (http://tox.testrun.org/) is a tool for running tests in
|
||||
# multiple virtualenvs. To use it, "pip install tox" and then run
|
||||
# "tox" from this directory.
|
||||
|
||||
[tox]
|
||||
envlist = py26,py27,cover,lint
|
||||
|
|
@ -12,11 +11,14 @@ commands =
|
|||
python setup.py test -q # -q does not suppress errors
|
||||
|
||||
[testenv:cover]
|
||||
basepython = python2.7
|
||||
commands =
|
||||
python setup.py dev
|
||||
python setup.py nosetests --with-coverage --cover-min-percentage=66
|
||||
|
||||
[testenv:lint]
|
||||
# recent versions of pylint do not support Python 2.6 (#97, #187)
|
||||
basepython = python2.7
|
||||
commands =
|
||||
python setup.py dev
|
||||
pylint --rcfile=.pylintrc letsencrypt
|
||||
|
|
|
|||
Loading…
Reference in a new issue