From 53a2feb6c09b4900f2d22cb5c502449835ac076e Mon Sep 17 00:00:00 2001 From: cclauss Date: Thu, 3 Jan 2019 14:26:16 +0100 Subject: [PATCH] Travis CI: Use flake8 to find Python syntax errors --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index e03355031a..de738a06a1 100755 --- a/.travis.yml +++ b/.travis.yml @@ -58,6 +58,10 @@ matrix: env: - CMAKE_OPTS="-DBUILD_FEM_NETGEN=ON" - PYTHON_MAJOR_VERSION=3 + before_script: + - pip install flake8 + # fail the build if there are Python syntax errors + - flake8 . --count --select=E901,E999,F822,F823 --show-source --statistics # This is commented out to stop permanently failing osx builds. Please check this thread for the details: # https://forum.freecadweb.org/viewtopic.php?f=10&t=32272