Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add CI settings.

Added configuration for running unit tests by setup.py.
Added configuration for travis-ci.org(.travis.yml).
  • Loading branch information...
commit 558508942ecacfad4ae4699a91a4bff68bfb145d 1 parent 757b0ff
@hirokinko hirokinko authored
Showing with 54 additions and 1 deletion.
  1. +2 −0  .gitignore
  2. +8 −0 .travis.yml
  3. +3 −1 setup.py
  4. +41 −0 test_settings.py
View
2  .gitignore
@@ -8,3 +8,5 @@ build
dist
django_allauth.egg-info
example/local_settings.py
+coverage.xml
+pep8.txt
View
8 .travis.yml
@@ -0,0 +1,8 @@
+langurage: python
+python:
+ - "2.7"
+ - "2.6"
+branches:
+ only:
+ - add_ci_settings
+script: python setup.py test
View
4 setup.py
@@ -121,7 +121,9 @@ def find_package_data(where=".", package="", exclude=standard_exclude,
'Framework :: Django',
],
packages=find_packages(exclude=['example']),
- package_data=package_data
+ package_data=package_data,
+ tests_require=['django-setuptest', 'argparse'],
+ test_suite='setuptest.setuptest.SetupTestSuite'
)
if __name__ == '__main__':
View
41 test_settings.py
@@ -0,0 +1,41 @@
+# -*- coding: utf-8 -*-
+DATABASES = {
+ 'default': {
+ 'ENGINE': 'django.db.backends.sqlite3',
+ 'NAME': ':memory:',
+ 'USER': '',
+ 'PASSWORD': '',
+ 'HOST': '',
+ 'PORT': '',
+ }
+}
+
+TEMPLATE_CONTEXT_PROCESSORS = (
+ "django.contrib.auth.context_processors.auth",
+ "django.core.context_processors.debug",
+ "django.core.context_processors.i18n",
+ "django.core.context_processors.media",
+ "django.core.context_processors.static",
+ "django.core.context_processors.request",
+ "django.contrib.messages.context_processors.messages",
+
+ "allauth.account.context_processors.account",
+ "allauth.socialaccount.context_processors.socialaccount",
+)
+
+INSTALLED_APPS = (
+ 'django.contrib.auth',
+ 'django.contrib.contenttypes',
+ 'django.contrib.sessions',
+ 'django.contrib.sites',
+ 'django.contrib.messages',
+ 'django.contrib.staticfiles',
+ 'django.contrib.admin',
+
+ 'allauth',
+ 'allauth.account',
+ 'allauth.socialaccount',
+ 'allauth.socialaccount.providers.twitter',
+ 'allauth.socialaccount.providers.openid',
+ 'allauth.socialaccount.providers.facebook',
+)
Please sign in to comment.
Something went wrong with that request. Please try again.