language: python
python:
 - "2.7"

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.
# Installing from source works but is slow and a waste of time. As long
# as we're using the same version of Python as the system, use a trick
# from @peterlandry https://github.com/travis-ci/travis-cookbooks/issues/48
 - "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then sudo apt-get install python-numpy 2>&1 | tail -n 2; fi"
 - "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then ln -s /usr/lib/python2.7/dist-packages/numpy ~/virtualenv/python2.7/lib/python2.7/site-packages/; fi"

install:
#Nothing needed under Python 2

script:
 - "python graphs.py"

language: python
python:
 - "2.7"

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.
# Installing from source works but is slow and a waste of time. As long
# as we're using the same version of Python as the system, use a trick
# from @peterlandry https://github.com/travis-ci/travis-cookbooks/issues/48
 - "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then sudo apt-get install python-numpy 2>&1 | tail -n 2; fi"
 - "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then ln -s /usr/lib/python2.7/dist-packages/numpy ~/virtualenv/python2.7/lib/python2.7/site-packages/; fi"


script:
 - "python graphs.py"

Revert "Include empty install instructions to silence TravisCI warning"
Revert "Include empty install instructions to silence TravisCI warning"

This reverts commit 24740e5db775edbf975cbe725112e35b0f57e1ed,
since it failed to get rid of the TravisCI warning:

"Could not locate requirements.txt in the repository root, not
installing dependencies. Override install: key in your .travis.yml
to install dependencies the way your project needs."
