-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unbreak code style checks on Travis CI
- Loading branch information
Showing
3 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash -e | ||
|
||
# I value automated code style checks that break my Travis CI builds but I also | ||
# value compatibility with Python 2.6, however recently it seems that flake8 | ||
# has dropped Python 2.6 compatibility [1]. That's only fair, but now I need to | ||
# work around it, hence this trivial script :-). | ||
# | ||
# [1] https://travis-ci.org/xolox/python-executor/jobs/151190070 | ||
|
||
if python -c 'import sys; sys.exit(0 if sys.version_info[:2] >= (2, 7) else 1)'; then | ||
echo "Updating installation of flake8 .." >&2 | ||
pip-accel install --upgrade --quiet --requirement=requirements-checks.txt | ||
flake8 | ||
else | ||
echo "Skipping code style checks on Python 2.6 .." >&2 | ||
fi |