From 014e230221f7333b59f5108d9d93c974ca6c4f17 Mon Sep 17 00:00:00 2001 From: Tiago Ilieve Date: Sun, 27 Apr 2014 09:59:11 -0300 Subject: [PATCH] Add Travis CI By now, it will only test the coding style rules defined for the project, which are basically a few exceptions to the PEP8. --- .gitignore | 4 +++- .travis.yml | 7 +++++++ tox.ini | 8 ++++++-- 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 .travis.yml diff --git a/.gitignore b/.gitignore index a43694d..f252264 100644 --- a/.gitignore +++ b/.gitignore @@ -5,8 +5,10 @@ _site/ # When developing for ec2 `vagrant provision' is quite handy /Vagrantfile /.vagrant +# Building the package /build /dist /bootstrap_vz.egg-info -/.tox +# Testing /.coverage +/.tox diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..1327034 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: python +python: + - "2.7" +install: + - "pip install tox" +script: + - "tox" diff --git a/tox.ini b/tox.ini index d8099cf..b7ba5b1 100644 --- a/tox.ini +++ b/tox.ini @@ -3,8 +3,12 @@ ignore = E101,E221,E241,E501,W191 max-line-length = 110 [tox] -envlist = py27 +envlist = flake8 + +[testenv:flake8] +deps = flake8 +commands = flake8 bootstrapvz/ --exclude=minify_json.py -[testenv] # Once tests have started being written, uncomment this to run tests when running tox. +#[testenv] #commands = nosetests -v tests --with-coverage --cover-package=bootstrapvz --cover-inclusive