diff --git a/.travis.yml b/.travis.yml index a8df432e..f4f95d67 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: python python: - "2.7" - - "3.3" - "3.4" - "3.5" - "3.6" @@ -10,9 +9,15 @@ python: - "nightly" install: - "pip install -e ." + - "pip install flake8" - "pip install pycrypto>=2.6" - "pip install -q behave" -# command to run tests +# commands to run tests +before_script: + # stop the build if there are Python syntax errors or undefined names + - 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 + - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics script: - python --version - behave