Add travis tests against python3

This commit is contained in:
Kudlaty
2013-04-16 09:59:59 +02:00
parent 7511ec6b26
commit 881ee46ef9
2 changed files with 20 additions and 10 deletions

View File

@@ -1,7 +1,9 @@
language: python
python:
- "2.6"
- "2.7"
# - "2.6"
# - "2.7"
# - "3.2"
- "3.3"
before_install:
- export PIP_USE_MIRRORS=true
- export PIP_INDEX_URL=https://simple.crate.io/
@@ -9,15 +11,25 @@ before_install:
- sudo apt-get install csstidy libxml2-dev libxslt-dev
install:
- pip install -e .
# - if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install unittest2 --use-mirrors; fi
# - if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install unittest2 --use-mirrors; fi
# - if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install BeautifulSoup --use-mirrors; fi
# - if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install BeautifulSoup --use-mirrors; fi
# - if [[ $TRAVIS_PYTHON_VERSION == 3.2 ]]; then pip install BeautifulSoup4 --use-mirrors; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.3 ]]; then pip install BeautifulSoup4 --use-mirrors; fi
- pip install -r requirements/tests.txt Django==$DJANGO
script:
- make test
env:
- DJANGO=1.3.7
- DJANGO=1.4.5
# - DJANGO=1.4.5
- DJANGO=1.5
# matrix:
# exclude:
# - python: "3.2"
# env: DJANGO=1.4.5
# - python: "3.3"
# env: DJANGO=1.4.5
branches:
only:
- develop
notifications:
irc: "irc.freenode.org#django-compressor"
- py3_new
- python3

View File

@@ -1,9 +1,7 @@
flake8
django-discover-runner
coverage
unittest2
BeautifulSoup==3.2.0
html5lib
mock
jinja2
lxml
lxml