language: python
matrix:
  include:
    - python: "2.6"
      env: TOXENV=py26 DIET_TOOLS_DIR=/usr/bin
    - python: "2.7"
      env: TOXENV=py27 DIET_TOOLS_DIR=/usr/bin
    - python: "3.3"
      env: TOXENV=py33 DIET_TOOLS_DIR=/usr/bin
    - python: "3.4"
      env: TOXENV=py34 DIET_TOOLS_DIR=/usr/bin
    - python: "3.5"
      env: TOXENV=py35 DIET_TOOLS_DIR=/usr/bin
    - python: "pypy"
      env: TOXENV=pypy DIET_TOOLS_DIR=/usr/bin

# command to install dependencies
install: 
  - sudo apt-get install optipng
  - pip install coveralls
  - pip install tox
# command to run tests
script: 
  tox
after_success:
  coveralls

language: python
matrix:
  include:
    - python: "2.6"
      env: TOXENV=py26 DIET_TOOLS_DIR=/usr/bin
    - python: "2.7"
      env: TOXENV=py27 DIET_TOOLS_DIR=/usr/bin
    - python: "3.3"
      env: TOXENV=py33 DIET_TOOLS_DIR=/usr/bin
    - python: "3.4"
      env: TOXENV=py34 DIET_TOOLS_DIR=/usr/bin
    - python: "3.5"
      env: TOXENV=py35 DIET_TOOLS_DIR=/usr/bin
    - python: "pypy"
      env: TOXENV=pypy DIET_TOOLS_DIR=/usr/bin

# command to install dependencies
install: 
  - sudo apt-get install optipng
  - pip install Django==1.7.10   # 1.8+ don't work with Python2.6
  - pip install coveralls
  - pip install tox
# command to run tests
script: 
  tox
after_success:
  coveralls

Use Django 1.7.10 for testing because of Python 2.6
Use Django 1.7.10 for testing because of Python 2.6
