From ee1a65a3fc5a9e93cc57c046dc1238dbdc24079e Mon Sep 17 00:00:00 2001 From: cclauss Date: Fri, 7 Sep 2018 17:34:58 +0200 Subject: [PATCH] print() is a function in Python 3 --- .travis.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index b54fe5bd..fcb388ad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,14 +10,22 @@ language: python python: - "2.7" - - "3.5" - -# command to install dependencies -install: "pip install -r common/requirements.txt" + - "3.6" # if we don't need sudo we can run in containers sudo: false +# command to install dependencies +install: + - "pip install -r common/requirements.txt" + - pip install flake8 + +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 + # test common script: nosetests --where common ccm.common