Permalink
Browse files

Fix travis to test multiple environments

We want to test Python 2.6 and 2.7 for Django 1.4.6 and 1.5.2.
  • Loading branch information...
1 parent 4a98052 commit c58a0e58980ed6931552ea6cf3158419cc47e8e5 @willkg willkg committed Aug 22, 2013
Showing with 8 additions and 5 deletions.
  1. +5 −2 .travis.yml
  2. +3 −3 requirements/dev.txt
View
7 .travis.yml
@@ -1,18 +1,21 @@
language: python
python:
+ - "2.6"
- "2.7"
env:
- - DB=mysql
+ - DB=mysql DJANGO_VERSION=1.4.6
+ - DB=mysql DJANGO_VERSION=1.5.2
before_install:
- sudo apt-get update -qq
- - sudo apt-get install build-essential python-dev python-pip python-virtualenv python-imaging python-lxml python-pyquery libxml2-dev libxslt-dev libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev zlib1g-dev python-bcrypt sqlite3
+ - sudo apt-get install build-essential python-dev python-pip python-virtualenv libxml2-dev libxslt-dev libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev zlib1g-dev sqlite3
- sudo ln -s /usr/lib/`uname -i`-linux-gnu/libfreetype.so /usr/lib
- sudo ln -s /usr/lib/`uname -i`-linux-gnu/libz.so /usr/lib
install:
+ - pip install django==${DJANGO_VERSION}
- pip install -r requirements/dev.txt --use-mirrors
script: python manage.py test -v2 badger
View
6 requirements/dev.txt
@@ -10,8 +10,8 @@ Sphinx
# for tests
nose
django_nose
-pyquery
South
feedparser
-cssselect
-lxml
+pyquery==1.2.4
+cssselect==0.7.1
+lxml==3.1beta1

0 comments on commit c58a0e5

Please sign in to comment.