From d6099e5b8d980cdb97c6c04451cddb3f1d9da70f Mon Sep 17 00:00:00 2001 From: Branden Archer Date: Tue, 22 Nov 2016 20:22:51 -0500 Subject: [PATCH] Run syntax checker during travis build In addition to running unit tests, these additional checks ensure that certain failures will not make it into the code base unintentionally. --- .travis.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ee440a3ac..cc4f6a25c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,12 @@ python: # command to install dependencies install: - pip install -r requirements.txt + - pip install pyflakes # Deal with issue on Travis builders re: multiprocessing.Queue :( - "sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm" # command to run tests -script: make unit functional +script: + - make unit functional + # Check that there are no syntax errors + - find lettuce -type f -name "*.py" -print | xargs python -m py_compile + - find lettuce -type f -name "*.py" -print | xargs pyflakes