Skip to content

Commit 7aee347

Browse files
author
cclauss
authored
Add free automated flake8 testing of pull requests
The owner of the this repo would need to go to https://travis-ci.org/profile and flip the repository switch __on__ to enable Travis CI to run free automated [flake8](http://flake8.pycqa.org) testing on each pull request.
1 parent de4cfde commit 7aee347

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.travis.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
language: python
2+
cache: pip
3+
python:
4+
- 2.7
5+
- 3.6
6+
#- nightly
7+
#- pypy
8+
#- pypy3
9+
matrix:
10+
allow_failures:
11+
- python: nightly
12+
- python: pypy
13+
- python: pypy3
14+
install:
15+
#- pip install -r requirements.txt
16+
- pip install flake8 # pytest # add another testing frameworks later
17+
before_script:
18+
# stop the build if there are Python syntax errors or undefined names
19+
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
20+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
21+
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
22+
script:
23+
- true # pytest --capture=sys # add other tests here
24+
notifications:
25+
on_success: change
26+
on_failure: change # `always` will be the setting once code changes slow down

0 commit comments

Comments
 (0)