tests: upgrade quicktest.py + improve travis configuration

This commit is contained in:
Gagaro
2014-12-04 10:22:31 +01:00
parent 32566873a4
commit 124fe21d06
2 changed files with 52 additions and 11 deletions

View File

@@ -1,19 +1,42 @@
language: python
python:
- "2.7"
- 2.6
- 2.7
- 3.2
- 3.3
- 3.4
env:
- DJANGO_VERSION=1.4
- DJANGO_VERSION=1.5
- DJANGO_VERSION=1.4 MODULE=jsignature
- DJANGO_VERSION=1.5 MODULE=jsignature
- DJANGO_VERSION=1.6 MODULE=jsignature.tests
- DJANGO_VERSION=1.7 MODULE=jsignature.tests
install:
- pip install -r requirements.txt --use-mirrors
- pip install -q Django==$DJANGO_VERSION --use-mirrors
- pip install coverage
script: coverage run quicktest.py jsignature
script: coverage run quicktest.py $MODULE
after_success:
- pip install coveralls
- coveralls
# We need to exclude old versions of Django for tests with python 3.
# We need to exclude old versions of Python for tests with Django >= 1.7.
matrix:
exclude:
- python: 3.2
env: DJANGO_VERSION=1.4
- python: 3.3
env: DJANGO_VERSION=1.4
- python: 3.4
env: DJANGO_VERSION=1.4
- python: 3.4
env: DJANGO_VERSION=1.5
- python: 3.4
env: DJANGO_VERSION=1.6
- python: 2.6
env: DJANGO_VERSION=1.7