language: python
python:
 - "2.5"
 - "2.6"
 - "2.7"
 - "3.2"

before_install:
# We need GraphViz to draw figures of graphs and lattices:
 - "sudo apt-get install graphviz 2>&1 | tail -n 2"
# We need these to call GraphViz from Python:
 - "pip install pydot pyparsing --use-mirrors | tail -n 2"

install:
# Don't need to do any install step for Python 2, but for Python 3
# must run 2to3 (twice, once for doctests, once for main code):
 - "if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then 2to3 -w -n --no-diffs -d graphs.py 2>&1 | tail -n 2; fi"
 - "if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then 2to3 -w -n --no-diffs graphs.py 2>&1 | tail -n 2; fi"
 - "echo Ready to test..."

script:
 - "python graphs.py"

language: python
python:
 - "2.5"
 - "2.6"
 - "2.7"
 - "3.2"

before_install:
# We need GraphViz to draw figures of graphs and lattices:
 - "sudo apt-get install graphviz 2>&1 | tail -n 2"
# We need these to call GraphViz from Python:
 - "pip install pydot pyparsing --use-mirrors | tail -n 2"
# We need NumPy, which currently isn't directly available in TravisCI
# under Python 3.2 due to an installation problem, thus this trick.
# See https://github.com/travis-ci/travis-cookbooks/issues/48
 - "if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then sudo apt-get install python3-numpy 2>&1 | tail -n 2; fi"
 - "if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then ln -s /usr/lib/python3/dist-packages/numpy ~/virtualenv/python3.2/lib/python3.2/site-packages/; fi"

install:
# Don't need to do any install step for Python 2, but for Python 3
# must run 2to3 (twice, once for doctests, once for main code):
 - "if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then 2to3 -w -n --no-diffs -d graphs.py 2>&1 | tail -n 2; fi"
 - "if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then 2to3 -w -n --no-diffs graphs.py 2>&1 | tail -n 2; fi"
 - "echo Ready to test..."

script:
 - "python graphs.py"

Revert "TravisCI should now provide NumPy under Python 3.2"
Revert "TravisCI should now provide NumPy under Python 3.2"

This reverts commit fdf97c8cd49e1039f6ceffe2185cfb7167dd2411.
Still not working, at least for me. Go back to manually installing
NumPy under Python 3.2
https://github.com/travis-ci/travis-cookbooks/issues/48
