Make sure that the code is formatted properly
diff --git a/.travis.yml b/.travis.yml
index 67f3892..87965b4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,12 +9,19 @@
matrix:
allow_failures:
- python: nightly
+ include:
+ - python: 2.7
+ env: SCA=true
+ - python: 3.5
+ env: SCA=true
install:
- - pip install --quiet coveralls
+ - if [ -z "$SCA" ]; then pip install --quiet coveralls; else echo skip; fi
+ - if [ -n "$SCA" ]; then python setup.py develop; else echo skip; fi
script:
- - nosetests --with-coverage --cover-package=yapf
+ - if [ -n "$SCA" ]; then yapf --diff --recursive . || exit; else echo skip; fi
+ - if [ -z "$SCA" ]; then nosetests --with-coverage --cover-package=yapf; else echo skip; fi
after_success:
- coveralls