Skip to content

Instantly share code, notes, and snippets.

@dstufft
Created May 3, 2012 20:37
Show Gist options
  • Save dstufft/2589068 to your computer and use it in GitHub Desktop.
Save dstufft/2589068 to your computer and use it in GitHub Desktop.
language: python
python:
- "2.6"
- "2.7"
env:
- DJANGO=1.2.7 SUITE=tests
- DJANGO=1.3.1 SUITE=tests
- DJANGO=1.4 SUITE=tests
- DJANGO=1.4 SUITE=lint
install:
- pip install -q Django==$DJANGO --use-mirrors
- pip install pep8 --use-mirrors
- pip install https://github.com/dcramer/pyflakes/tarball/master
- pip install -q -e . --use-mirrors
script:
- runtests.sh
matrix:
exclude:
python: "2.6"
env: DJANGO=1.4 SUITE=lint
set -e
if [[ $SUITE == "lint" ]]
then
pep8 --exclude=migrations --ignore=E501,E225 src
pyflakes -x W src
elif [[ $SUITE == "tests" ]]
then
python setup.py test
else
echo "Unknown Suite"
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment