From 68d53fdbd048a98e623a170f0ab02935b2afce86 Mon Sep 17 00:00:00 2001 From: Alvaro Lopez Garcia Date: Tue, 3 Mar 2015 17:09:04 +0100 Subject: [PATCH] Add travis-ci.org and coverals configuration file --- .travis.yml | 13 +++++++++++++ test-requirements.txt | 4 ++-- tox.ini | 8 +++++++- 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..e8903c0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,13 @@ +language: python + +install: + - pip install tox + +script: + - tox + +env: + - TOXENV=py27 + - TOXENV=py34 + - TOXENV=pep8 + - TOXENV=coveralls diff --git a/test-requirements.txt b/test-requirements.txt index aaae73b..a398a4c 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -3,9 +3,9 @@ hacking>=0.9.2,<0.10 coverage>=3.6 discover fixtures>=0.3.14 -python-subunit +python-subunit>=0.0.18 sphinx>=1.1.2 oslosphinx testrepository>=0.0.18 testscenarios>=0.4 -testtools>=0.9.34 \ No newline at end of file +testtools>=0.9.34 diff --git a/tox.ini b/tox.ini index ec84838..cf0a8dd 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 1.6 -envlist = py33,py27,pep8 +envlist = py34,py27,pep8 skipsdist = True [testenv] @@ -21,6 +21,12 @@ commands = {posargs} [testenv:cover] commands = python setup.py testr --coverage --testr-args='{posargs}' +[testenv:coveralls] +commands = python setup.py testr --coverage --testr-args='{posargs}' + coveralls +deps = coveralls + {[testenv]deps} + [testenv:docs] commands = python setup.py build_sphinx