aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorcclauss <cclauss@bluewin.ch>2018-04-12 22:37:27 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2018-04-12 22:37:27 +0200
commit37840baea2a48db7192c2ef502b5b36995476981 (patch)
treee93ac6929422eaec62fef7280ccc712c64106704 /.travis.yml
parent5f7318d58337cf4ff429e9c9d6f33d55940c03c0 (diff)
downloadwee-slack-37840baea2a48db7192c2ef502b5b36995476981.tar.gz
Use flake8 to find undefined names (#556)
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"