aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml13
1 files changed, 11 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 6739e1c..a163da4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,10 +1,19 @@
language: python
python:
- "2.7"
+cache: pip
+
install:
- - 'pip install websocket-client pytest'
+ - pip install flake8 pytest websocket-client
+
+before_script:
+ # stop the build if there are Python syntax errors or undefined names
+ - flake8 .
+ # exit-zero treats all errors as warnings.
+ - flake8 . --exit-zero --select=C,E,F,W
-script: python -m pytest
+script:
+ - python -m pytest
notifications:
irc: "chat.freenode.net#wee-slack-dev"