Merge pull request #56 from ostcar/master

Travis
This commit is contained in:
Oskar Hahn 2012-11-24 07:33:31 -08:00
commit 42573affd8
4 changed files with 31 additions and 0 deletions

1
.gitignore vendored
View File

@ -12,6 +12,7 @@ docs/_build/*
build/* build/*
dist/* dist/*
.DS_Store .DS_Store
settings.py
# Unit test / coverage reports # Unit test / coverage reports
.coverage .coverage

10
.travis.yml Normal file
View File

@ -0,0 +1,10 @@
language: python
python:
- "2.5"
- "2.6"
- "2.7"
install:
- pip install -r requirements.txt --use-mirrors
- pip install coverage django-discover-runner
- python extras/scripts/create_local_settings.py
script: coverage run ./manage.py test tests && coverage report -m

View File

@ -0,0 +1,15 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
script_path = os.path.realpath(os.path.dirname(__file__))
sys.path.append(os.path.join(script_path, '..', '..'))
from openslides.main import create_settings
if __name__ == "__main__":
cwd = os.getcwd()
create_settings(os.path.join(cwd, 'settings.py'),
os.path.join(cwd, 'database.sqlite'))

5
requirements.txt Normal file
View File

@ -0,0 +1,5 @@
Django==1.4.2
django-mptt
reportlab
pil
simplejson