language: python

python:
  - 2.6
  - 2.7
  - 3.2
  - 3.3
  - 3.4

env:
  - REQUIREMENTS="django>=1.5,<1.6 django-discover-runner"
  - REQUIREMENTS="django>=1.6,<1.7"
  - REQUIREMENTS="https://github.com/django/django/archive/stable/1.7.x.tar.gz"
  - REQUIREMENTS="https://github.com/django/django/archive/master.tar.gz"

matrix:
  exclude:
    - python: 2.6
      env: REQUIREMENTS="https://github.com/django/django/archive/stable/1.7.x.tar.gz"
    - python: 2.6
      env: REQUIREMENTS="https://github.com/django/django/archive/master.tar.gz"
  allow_failures:
    - env: REQUIREMENTS="https://github.com/django/django/archive/stable/1.7.x.tar.gz"
    - env: REQUIREMENTS="https://github.com/django/django/archive/master.tar.gz"

install: pip install -q $REQUIREMENTS South flake8 coveralls

script: python -R -Wonce `which coverage` run `which django-admin.py` test colorful --pythonpath=`pwd` --settings=colorful.tests.settings -v2

after_success:
  - flake8
  - coverage report -m
  - coveralls
sudo: false

language: python

python:
  - 2.6
  - 2.7
  - 3.2
  - 3.3
  - 3.4

env:
  - REQUIREMENTS="django>=1.5,<1.6 django-discover-runner"
  - REQUIREMENTS="django>=1.6,<1.7"
  - REQUIREMENTS="https://github.com/django/django/archive/stable/1.7.x.tar.gz"
  - REQUIREMENTS="https://github.com/django/django/archive/master.tar.gz"

matrix:
  exclude:
    - python: 2.6
      env: REQUIREMENTS="https://github.com/django/django/archive/stable/1.7.x.tar.gz"
    - python: 2.6
      env: REQUIREMENTS="https://github.com/django/django/archive/master.tar.gz"
  allow_failures:
    - env: REQUIREMENTS="https://github.com/django/django/archive/stable/1.7.x.tar.gz"
    - env: REQUIREMENTS="https://github.com/django/django/archive/master.tar.gz"

cache: pip

install: pip install -q $REQUIREMENTS South flake8 coveralls

script: python -R -Wonce `which coverage` run `which django-admin.py` test colorful --pythonpath=`pwd` --settings=colorful.tests.settings -v2

after_success:
  - flake8
  - coverage report -m
  - coveralls

Use TravisCI containers and cache pip.
Use TravisCI containers and cache pip.