Skip to content
Browse files

Run PEP8 check on travis-ci

  • Loading branch information...
1 parent f17d98c commit f12e37a7892522f3795ca0e77295f5c8eda901dd @cdeil cdeil committed Apr 7, 2013
Showing with 10 additions and 5 deletions.
  1. +8 −3 .travis.yml
  2. +2 −2 Makefile
View
11 .travis.yml
@@ -20,19 +20,21 @@ install:
- time sudo apt-get install -qq python-numpy python-nose python-sphinx python-pexpect python-mongoengine
# Note: we don't install the web packages with apt-get because this resulted
# in version conflicts on travis-ci for WebOB:
- # python-pyramid python-magic python-markdown python-weberror python-pastewebkit
+ # python-pyramid python-magic python-markdown python-weberror python-pastewebkit
+
+ - sudo pip install pep8
# Install a ROOT binary that we custom-built in a 64-bit Ubuntu VM
# for the correct Python / ROOT version
- time wget --no-check-certificate https://dl.dropbox.com/u/4923986/rootpy/64/root_v${ROOT}_Python_${TRAVIS_PYTHON_VERSION}.tar.gz
- time tar zxf root_v${ROOT}_Python_${TRAVIS_PYTHON_VERSION}.tar.gz
- source root_v${ROOT}_Python_${TRAVIS_PYTHON_VERSION}/bin/thisroot.sh
-script:
-
# Install WebOOT and dependencies
- python setup.py install --user
+script:
+
# Check if root and PyROOT work ok
- time root -l -q
- time python -c 'import ROOT; ROOT.TBrowser()'
@@ -60,3 +62,6 @@ script:
# TODO: run weboot unit tests
- cd ..
- python weboot/tests.py
+
+ # Check PEP 8 compliance
+ - make pep8
View
4 Makefile
@@ -1,5 +1,5 @@
pep8:
- pep8 -r weboot setup.py --max-line-length=100
+ pep8 -r weboot setup.py --max-line-length=100 --count
autopep8:
- autopep8 -r weboot setup.py -d --max-line-length=100
+ autopep8 -r weboot setup.py -i --max-line-length=100

0 comments on commit f12e37a

Please sign in to comment.
Something went wrong with that request. Please try again.