From c69c5f6613d07a281dc4dfa533651577f8e8cbe0 Mon Sep 17 00:00:00 2001 From: cclauss Date: Sat, 2 Dec 2017 08:23:01 -0500 Subject: [PATCH] Travis CI: Drop Python 3 and add falke8 tests --- .travis.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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