title: How can I optimize my Travis CI matrix for Django and Python versions?
body: <p>I have a .travis.yml file that looks like this:</p>
  
  <p><a href="https://gist.github.com/dyve/d79e5cd4f81bb2675181" rel="nofollow">https://gist.github.com/dyve/d79e5cd4f81bb2675181</a></p>
  
  <p>(original: <a href="https://github.com/dyve/django-bootstrap3/blob/develop/.travis.yml" rel="nofollow">https://github.com/dyve/django-bootstrap3/blob/develop/.travis.yml</a>)</p>
  
  <p>I have to type several Python and Django versions more than once. I would like to:</p>
  
  <ul>
  <li>Automatically pick the newest Django 1.4, 1.5, 1.6 and 1.7</li>
  <li>Exclude Python>2 &amp;&amp; Django&lt;1.6</li>
  <li>Exclude Python&lt;2.7 &amp;&amp; Django>1.6</li>
  </ul>
  
  <p>Is there a more DRY way to do this in a Travis CI file?</p>