You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2017/12/12 21:56:14 UTC

[GitHub] piiswrong closed pull request #7898: Stop the build if there are Python syntax errors

piiswrong closed pull request #7898: Stop the build if there are Python syntax errors
URL: https://github.com/apache/incubator-mxnet/pull/7898
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/tests/travis/run_test.sh b/tests/travis/run_test.sh
index fd23f0e82b..6f57380e4e 100755
--- a/tests/travis/run_test.sh
+++ b/tests/travis/run_test.sh
@@ -132,6 +132,11 @@ if [ ${TASK} == "python_test" ]; then
         nosetests3 -v tests/python/train || exit -1
         nosetests -v tests/python/doctest || exit -1
         nosetests3 -v tests/python/doctest || exit -1
+        python2 -m pip install flake8
+        python3 -m pip install flake8
+        # stop the build if there are Python syntax errors
+        python2 -m flake8 . --count --select=E901,E999,F822,F823 --show-source --statistics
+        python3 -m flake8 . --count --select=E901,E999,F822,F823 --show-source --statistics
     fi
     exit 0
 fi


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services