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
187 changed files
with
5,902 additions
and
3,546 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,36 +1,57 @@ | ||
sudo: false | ||
|
||
language: python | ||
|
||
python: | ||
- "2.6" | ||
- "2.7" | ||
- "3.3" | ||
- "3.4" | ||
|
||
env: | ||
- DJANGO_VERSION=1.5 | ||
- DJANGO_VERSION=1.6 | ||
- DJANGO_VERSION=1.7 | ||
- DJANGO_VERSION=1.8 | ||
- DJANGO_VERSION=dev | ||
- MODE=flake8 | ||
- MODE=flake8-strict | ||
- MODE=docs | ||
- DJANGO_VERSION=dj18 | ||
- DJANGO_VERSION=dj111 | ||
- DJANGO_VERSION=djdev | ||
|
||
matrix: | ||
allow_failures: | ||
- env: DJANGO_VERSION=dev | ||
- env: DJANGO_VERSION=djdev | ||
- env: MODE=flake8-strict | ||
exclude: | ||
- env: DJANGO_VERSION=dev | ||
python: "2.6" | ||
- env: DJANGO_VERSION=1.8 | ||
python: "2.6" | ||
- env: DJANGO_VERSION=1.7 | ||
python: "2.6" | ||
- python: "3.4" | ||
env: MODE=flake8 | ||
- python: "3.4" | ||
env: MODE=flake8-strict | ||
- python: "2.7" | ||
env: DJANGO_VERSION=djdev | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- binutils | ||
- libproj-dev | ||
- gdal-bin | ||
- spatialite-bin | ||
- libspatialite-dev | ||
|
||
before_install: | ||
- sudo apt-get install python-sphinx python3-sphinx | ||
cache: | ||
directories: | ||
- $HOME/.cache/pip | ||
|
||
before_cache: | ||
- rm -f $HOME/.cache/pip/log/debug.log | ||
|
||
# command to install dependencies | ||
install: | ||
- pip install tox | ||
- pip install -U pip | ||
- pip install -U wheel virtualenv | ||
- pip install tox coveralls | ||
|
||
after_success: | ||
- coveralls | ||
|
||
# command to run tests | ||
script: | ||
- tox -e py${TRAVIS_PYTHON_VERSION/./}-${DJANGO_VERSION},docs | ||
- coverage erase | ||
- tox -e py${TRAVIS_PYTHON_VERSION/./}-${DJANGO_VERSION}${MODE} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import mock | ||
|
||
|
||
OAuth20Authentication = mock.Mock() |
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,10 @@ | ||
#!/usr/bin/env python | ||
import os | ||
import sys | ||
|
||
if __name__ == "__main__": | ||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myproject.settings") | ||
|
||
from django.core.management import execute_from_command_line | ||
|
||
execute_from_command_line(sys.argv) |
File renamed without changes.
Empty file.
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,8 @@ | ||
from tastypie.resources import ModelResource | ||
|
||
from ..models import User | ||
|
||
|
||
class UserResource(ModelResource): | ||
class Meta: | ||
object_class = User.objects.all() |
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,8 @@ | ||
import mock | ||
|
||
from django.contrib.auth.models import User # flake8: noqa | ||
|
||
|
||
Choice = mock.MagicMock() | ||
Poll = mock.MagicMock() | ||
MyModel = mock.MagicMock() |
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,4 @@ | ||
from tastypie.api import Api | ||
|
||
|
||
my_api = Api() |
Empty file.
Oops, something went wrong.