Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Set up travis ci so we can peg what we support #10

Merged
merged 4 commits into from

1 participant

Jason Ward
This page is out of date. Refresh to see the latest.
Showing with 26 additions and 7 deletions.
  1. +14 −0 .travis.yml
  2. +11 −7 example/settings.py
  3. +1 −0  setup.py
14 .travis.yml
View
@@ -0,0 +1,14 @@
+language: python
+python:
+ - "2.6"
+ - "2.7"
+script: ./example/manage.py test authority
+env:
+ - TRAVIS_DJANGO_VERSION=1.3
+ - TRAVIS_DJANGO_VERSION=1.4
+ - TRAVIS_DJANGO_VERSION=1.5
+install:
+ - pip install django-extensions django-debug-toolbar django==$TRAVIS_DJANGO_VERSION --use-mirrors
+notifications:
+ email:
+ - jason.louard.ward@gmail.com
18 example/settings.py
View
@@ -8,12 +8,16 @@
MANAGERS = ADMINS
-DATABASE_ENGINE = 'sqlite3'
-DATABASE_NAME = os.path.join(PROJECT_ROOT, 'example.db')
-DATABASE_USER = ''
-DATABASE_PASSWORD = ''
-DATABASE_HOST = ''
-DATABASE_PORT = ''
+DATABASES = {
+ 'default': {
+ 'ENGINE': 'django.db.backends.sqlite3',
+ 'NAME': os.path.join(PROJECT_ROOT, 'example.db'),
+ 'USER': '',
+ 'PASSWORD': '',
+ 'HOST': '',
+ 'PORT': '',
+ }
+}
TIME_ZONE = 'America/Chicago'
@@ -83,6 +87,6 @@
# Use local_settings.py for things to override privately
try:
- from local_settings import *
+ from local_settings import * # noqa
except ImportError:
pass
1  setup.py
View
@@ -24,6 +24,7 @@ def read(fname):
'Programming Language :: Python',
'Framework :: Django',
],
+ install_requires=['django', 'django-extensions', 'django-debug-toolbar'],
package_data = {
'authority': [
'fixtures/test.json',
Something went wrong with that request. Please try again.