-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
73 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,49 @@ | ||
language: python | ||
|
||
python: | ||
- "2.7" | ||
- "3.5" | ||
- "3.4" | ||
- "3.3" | ||
- "2.7" | ||
|
||
env: | ||
- DJANGO="django==1.9.2" | ||
- DJANGO="django==1.8.9" | ||
- DJANGO="django==1.7.10" | ||
- DJANGO="django==1.6.11" | ||
- DJANGO="django==1.5.12" | ||
- DJANGO="django==1.4.22" | ||
|
||
matrix: | ||
exclude: | ||
- python: "3.5" | ||
env: DJANGO="django==1.7.10" | ||
- python: "3.5" | ||
env: DJANGO="django==1.6.11" | ||
- python: "3.5" | ||
env: DJANGO="django==1.5.12" | ||
- python: "3.5" | ||
env: DJANGO="django==1.4.22" | ||
|
||
- python: "3.4" | ||
env: DJANGO="django==1.4.22" | ||
|
||
- python: "3.3" | ||
env: DJANGO="django==1.9.2" | ||
- python: "3.3" | ||
env: DJANGO="django==1.4.22" | ||
|
||
install: | ||
- pip install -e . --use-mirrors | ||
- pip install nose . --use-mirrors | ||
- pip install django-nose . --use-mirrors | ||
- pip install pillow . --use-mirrors | ||
- pip install coveralls --use-mirrors | ||
- travis_retry pip install $DJANGO | ||
- travis_retry pip install six | ||
- travis_retry pip install sampledata | ||
- travis_retry pip install nose | ||
- travis_retry pip install django-nose | ||
- travis_retry pip install pillow | ||
- travis_retry pip install coveralls | ||
|
||
script: | ||
- coverage run --source=sampledatahelper setup.py test | ||
notifications: | ||
email: | ||
recipients: | ||
- jespinog@gmail.com | ||
on_success: change | ||
on_failure: change | ||
|
||
after_success: | ||
- coveralls | ||
- travis_retry coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
|
||
# get model | ||
get_model = None | ||
try: | ||
# django < 1.9 | ||
from django.db.models import loading | ||
get_model = loading.get_model | ||
except ImportError: | ||
# django >= 1.9 | ||
from django.apps import apps | ||
get_model = apps.get_model | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters