Skip to content

Commit

Permalink
Merge pull request neozhaoliang#11 from cclauss/patch-2
Browse files Browse the repository at this point in the history
Add flake8 testing to Travis CI
  • Loading branch information
neozhaoliang authored Aug 25, 2017
2 parents 2ccb1ba + fc5dd06 commit 284b81b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
18 changes: 17 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
#TODO write tests
language: python
cache: pip
python:
- 2.7.13
- 3.6
install:
- pip install flake8
before_script:
# stop the build if there are Python syntax errors or undefined names
- time flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- time flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
script:
- true # <-- add other tests here...
notifications:
on_success: change
on_failure: change # `always` will be the setting once code changes slow down
1 change: 0 additions & 1 deletion tox.ini

This file was deleted.

0 comments on commit 284b81b

Please sign in to comment.