aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stokes <adam.stokes@ubuntu.com>2014-08-02 01:31:17 -0400
committerBryn M. Reeves <bmr@redhat.com>2014-08-02 19:57:57 +0100
commit082a561ceaf73e4f90eb6313ab8431a2b076ac17 (patch)
treedf08331f34cf7a95079e451a7c53d8719c1c7480
parent0a8a59a0c4983dfa35ba26c0b98a1f0d545214f9 (diff)
downloadsos-082a561ceaf73e4f90eb6313ab8431a2b076ac17.tar.gz
[travis-ci] run pep8 against code tree
To ensure proper code formatting and syntax is being done this enables travis-ci to continually check pep8 compliance. This is useful as it will tend to spot a lot of syntax errors that the unittests may not pick up. Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
-rw-r--r--.travis.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 0ed41d99..fc0ab95f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,7 +12,8 @@ notifications:
- "us.freenode.net#sosreport"
on_success: change
install:
- - "pip install six nose nose-cov --use-mirrors"
+ - "pip install six nose nose-cov pep8 --use-mirrors"
- "python setup.py install"
script:
+ - "pep8 sos"
- "nosetests -v --with-cover --cover-package=sos --cover-html"