diff --git a/.travis.yml b/.travis.yml
index 841b08a5d0e68aca47f1859a78ec344d0f588db6..a1b0a76972a75418ef2153d25cda1947471420c2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,10 @@
 language: python
 python:
-    - "3.4"
+  - "3.4"
+install:
+  - pip install -r requirements.txt
+  - pip install pep8
 script:
-  python -m homeassistant -t test
+  - pep8 homeassistant --exclude bower_components,external
+  - python -m homeassistant -t test
+