From 46fec7350660d7f454a9c7631a930f271e2dfb73 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Tue, 14 Jul 2015 13:11:43 -0700 Subject: [PATCH] Add .travis.yml --- .travis.yml | 11 +++++++++++ README.rst | 3 +++ tox.ini | 7 +++++++ 3 files changed, 21 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..0a69033 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ +language: python +env: +- TOX_ENV=py26 +- TOX_ENV=py27 +- TOX_ENV=py33 +- TOX_ENV=py34 +install: +- "pip install --use-mirrors tox" +script: +- tox -e $TOX_ENV +sudo: false diff --git a/README.rst b/README.rst index f7a8be2..0a9d18d 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,9 @@ Docker Custodian ================ +.. image:: https://travis-ci.org/Yelp/docker-custodian.svg + :target: https://travis-ci.org/Yelp/docker-custodian + Keep docker hosts tidy. diff --git a/tox.ini b/tox.ini index fcb7048..84ba441 100644 --- a/tox.ini +++ b/tox.ini @@ -11,6 +11,13 @@ commands = py.test {posargs:tests} flake8 . +[testenv:py26] +deps = + -rrequirements.txt + flake8 + pytest + mock < 1.1.0 + [testenv:install-hooks] deps = pre-commit