Travis CI: Use flake8 to find Python syntax errors

This commit is contained in:
cclauss
2019-01-03 14:26:16 +01:00
committed by Yorik van Havre
parent 59eb1735bc
commit 53a2feb6c0

View File

@@ -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