nathanborror/django-basic-apps — pull request #39 by msabramo (2012-06-22 16:34:37+00:00)
Title: Add support for tox (http://tox.testrun.org/) and Travis CI (http://travis-ci.org/)

Travis CI build for my fork: http://travis-ci.org/#!/msabramo/django-basic-apps/builds/1683300

To set up Travis CI for your own repo, see http://about.travis-ci.org/docs/user/getting-started/

Tox output:

```
[last: 0] marca@SCML-MarcA:~/dev/git-repos/django-basic-apps$ tox
GLOB sdist-make: /Users/marca/dev/git-repos/django-basic-apps/setup.py
py26 sdist-reinst: /Users/marca/dev/git-repos/django-basic-apps/.tox/dist/django-basic-apps-0.7.zip
py26 runtests: commands[0]
Creating test database for alias 'default' (':memory:')...
Creating tables ...
Creating table blog_categories
Creating table blog_posts_categories
Creating table blog_posts
Creating table blog_blogroll
Creating table bookmarks
Creating table book_genres
Creating table book_publishers
Creating table books_authors
Creating table books_genre
Creating table books
Creating table book_highlights
Creating table book_read_pages
Creating table django_comments
Creating table django_comment_flags
Creating table events
Creating table event_times
Creating table flag_types
Creating table flags
Creating table groups_group
Creating table groups_grouppage
Creating table groups_grouptopic
Creating table groups_groupmessage
Creating table groups_groupmember
Creating table inline_types
Creating table invitations_invitation
Creating table invitations_invitationallotment
Creating table media_audio_sets_audios
Creating table media_audio_sets
Creating table media_audio
Creating table media_photo_sets_photos
Creating table media_photo_sets
Creating table media_photos
Creating table media_video_sets_videos
Creating table media_video_sets
Creating table media_videos
Creating table messages
Creating table movie_genres
Creating table movie_studios
Creating table movies_directors
Creating table movies_genre
Creating table movies
Creating table music_genres
Creating table music_labels
Creating table music_bands_musicians
Creating table music_bands
Creating table music_albums_genre
Creating table music_albums
Creating table music_tracks
Creating table people_types
Creating table people_person_types
Creating table people
Creating table people_quotes
Creating table people_conversation
Creating table people_conversationitem
Creating table place_types
Creating table place_cities
Creating table place_points
Creating table places_place_types
Creating table places
Creating table user_profiles
Creating table user_mobile_providers
Creating table user_service_types
Creating table user_services
Creating table user_links
Creating table relationships
Creating table tagging_tag
Creating table tagging_taggeditem
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table django_admin_log
Installing custom SQL ...
Installing indexes ...
Installed 22 object(s) from 2 fixture(s)
test_flagging (basic.flagging.tests.FlaggingTestCase) ... /Users/marca/dev/git-repos/django-basic-apps/.tox/py26/lib/python2.6/site-packages/django/views/generic/list_detail.py:10: DeprecationWarning: Function-based generic views have been deprecated; use class-based views instead.
DeprecationWarning
/Users/marca/dev/git-repos/django-basic-apps/.tox/py26/lib/python2.6/site-packages/django/views/generic/simple.py:8: DeprecationWarning: Function-based generic views have been deprecated; use class-based views instead.
DeprecationWarning
/Users/marca/dev/git-repos/django-basic-apps/.tox/py26/lib/python2.6/site-packages/django/views/generic/date_based.py:14: DeprecationWarning: Function-based generic views have been deprecated; use class-based views instead.
DeprecationWarning
ok
test_block (basic.relationships.tests.RelationshipTestCase) ... /Users/marca/dev/git-repos/django-basic-apps/.tox/py26/lib/python2.6/site-packages/django/template/defaulttags.py:1235: DeprecationWarning: The syntax for the url template tag is changing. Load the `url` tag from the `future` tag library to start using the new behavior.
category=DeprecationWarning)
ok
test_follow (basic.relationships.tests.RelationshipTestCase) ... ok
test_followers (basic.relationships.tests.RelationshipTestCase) ... ok
test_following (basic.relationships.tests.RelationshipTestCase) ... ok
tests (basic.bookmarks)
Doctest: basic.bookmarks.tests ... ok
tests (basic.events)
Doctest: basic.events.tests ... ok
tests (basic.people)
Doctest: basic.people.tests ... ok
tests (basic.places)
Doctest: basic.places.tests ... ok

----------------------------------------------------------------------
Ran 9 tests in 1.766s

OK
Destroying test database for alias 'default' (':memory:')...
py27 sdist-reinst: /Users/marca/dev/git-repos/django-basic-apps/.tox/dist/django-basic-apps-0.7.zip
py27 runtests: commands[0]
Creating test database for alias 'default' (':memory:')...
Creating tables ...
Creating table blog_categories
Creating table blog_posts_categories
Creating table blog_posts
Creating table blog_blogroll
Creating table bookmarks
Creating table book_genres
Creating table book_publishers
Creating table books_authors
Creating table books_genre
Creating table books
Creating table book_highlights
Creating table book_read_pages
Creating table django_comments
Creating table django_comment_flags
Creating table events
Creating table event_times
Creating table flag_types
Creating table flags
Creating table groups_group
Creating table groups_grouppage
Creating table groups_grouptopic
Creating table groups_groupmessage
Creating table groups_groupmember
Creating table inline_types
Creating table invitations_invitation
Creating table invitations_invitationallotment
Creating table media_audio_sets_audios
Creating table media_audio_sets
Creating table media_audio
Creating table media_photo_sets_photos
Creating table media_photo_sets
Creating table media_photos
Creating table media_video_sets_videos
Creating table media_video_sets
Creating table media_videos
Creating table messages
Creating table movie_genres
Creating table movie_studios
Creating table movies_directors
Creating table movies_genre
Creating table movies
Creating table music_genres
Creating table music_labels
Creating table music_bands_musicians
Creating table music_bands
Creating table music_albums_genre
Creating table music_albums
Creating table music_tracks
Creating table people_types
Creating table people_person_types
Creating table people
Creating table people_quotes
Creating table people_conversation
Creating table people_conversationitem
Creating table place_types
Creating table place_cities
Creating table place_points
Creating table places_place_types
Creating table places
Creating table user_profiles
Creating table user_mobile_providers
Creating table user_service_types
Creating table user_services
Creating table user_links
Creating table relationships
Creating table tagging_tag
Creating table tagging_taggeditem
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table django_admin_log
Installing custom SQL ...
Installing indexes ...
Installed 22 object(s) from 2 fixture(s)
test_flagging (basic.flagging.tests.FlaggingTestCase) ... ok
test_block (basic.relationships.tests.RelationshipTestCase) ... ok
test_follow (basic.relationships.tests.RelationshipTestCase) ... ok
test_followers (basic.relationships.tests.RelationshipTestCase) ... ok
test_following (basic.relationships.tests.RelationshipTestCase) ... ok
tests (basic.bookmarks)
Doctest: basic.bookmarks.tests ... ok
tests (basic.events)
Doctest: basic.events.tests ... ok
tests (basic.people)
Doctest: basic.people.tests ... ok
tests (basic.places)
Doctest: basic.places.tests ... ok

----------------------------------------------------------------------
Ran 9 tests in 2.342s

OK
Destroying test database for alias 'default' (':memory:')...
_________________________________________________________________________ summary __________________________________________________________________________
py26: commands succeeded
py27: commands succeeded
congratulations :)
```