Skip to content

Commit

Permalink
Run syntax checker during travis build
Browse files Browse the repository at this point in the history
In addition to running unit tests, these additional checks ensure that
certain failures will not make it into the code base unintentionally.
  • Loading branch information
brarcher committed Nov 23, 2016
1 parent d88bb87 commit a254ca7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a254ca7

Please sign in to comment.