Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run syntax checker during travis build #544

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion lettuce/django/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def run(self):
httpd_cls = WSGIServer

try:
s = connector.connect((self.address, self.port))
connector.connect((self.address, self.port))
self.lock.release()
os.kill(os.getpid(), 9)
except socket.error:
Expand Down
1 change: 0 additions & 1 deletion lettuce/plugins/xunit_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from lettuce.terrain import after
from lettuce.terrain import before
from xml.dom import minidom
from lettuce.strings import utf8_string


def wrt_output(filename, content):
Expand Down