Permalink
Browse files

Work on travis build.

  • Loading branch information...
sfermigier committed Jan 10, 2015
1 parent 2fedd0e commit 77248d01d2c68b2e28f6fef2b6eb1bf75f2ac50e
Showing with 113 additions and 6 deletions.
  1. +11 −5 .travis.yml
  2. +96 −0 deploy/settings_travis.py
  3. +6 −1 src/cm/converters/oo_converters.py
View
@@ -2,20 +2,26 @@ language: python
python:
- "2.7"
addons:
- postgresql: "9.3"
# Install OS dependencies
before_install:
- sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm
- sudo apt-get update
- sudo apt-get update -qq
- cat /etc/lsb-release
- sudo sh deploy/provision.sh
- apt-get install -y python-dev g++ libtidy-dev pandoc python-magic \
python-psycopg2 libpq-dev
# Install Python dependencies
install:
- pip install -U setuptools
- python bootstrap-buildout.py
- bin/buildout -v
- cp deploy/settings_travis.py settings_local.py
before_script:
- psql -c 'create database comt;' -U postgres
# Setup and run tests
# Run tests
script:
- bin/django test --settings=settings
View
@@ -0,0 +1,96 @@
#
# A settings config intended to be used with the Travis CI build.
#
DEBUG = True
TEMPLATE_DEBUG = DEBUG
CLIENT_DEBUG = DEBUG
YUI_DEBUG = DEBUG # use expanded yui version (i.e. not -min)
YUI_DISTANT = False
DATABASES = {
'default': {
'ENGINE': 'postgresql_psycopg2',
'NAME': 'comt',
'USER': 'postgres',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
# DATABASES = {
# 'default': {
# 'ENGINE': 'sqlite3',
# 'NAME': 'com.db',
# }
# }
SITE_URL = "http://127.0.0.1:8000" # YOUR_SETTINGS
DEFAULT_FROM_EMAIL = "me@example.com" # YOUR_SETTINGS
# destination email for the contact page
CONTACT_DEST = DEFAULT_FROM_EMAIL
# smtp host
EMAIL_HOST = "localhost" # YOUR_SETTINGS
TEMPLATE_STRING_IF_INVALID = "NNNNNNNNNOOOOOOOOOOOOOOO" if DEBUG else ''
# web server writable directory to store Comt uploaded content (text images etc.)
MEDIA_ROOT = '/the/path/' # YOUR_SETTINGS
# Insert some random text here,
# it will be used to add some randomness to every crypto operation Comt does
SECRET_KEY = 'NOT FOR PRODUCTION' # YOUR_SETTINGS
MEDIA_URL = '/site_media/'
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'cm',
# 'django_extensions',
'tagging',
'south',
)
CM_MEDIA_PREFIX = '/cmmedia/'
ADMIN_MEDIA_PREFIX = '/media/'
ADMINS = (
('Comt admin', CONTACT_DEST),
)
MANAGERS = ADMINS
SEND_BROKEN_LINK_EMAILS = False
SERVER_EMAIL = DEFAULT_FROM_EMAIL
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as your
# system time zone.
DEFAULT_TIME_ZONE = "Europe/Paris"
# Do not use name/email of co-ment users but rather
# those passed in the request.
# Set this parameter to True when using co-ment from
# a third-party CMS throuch co-ment API.
DECORATED_CREATORS = False
# Set to TRUE to use Abiword for convertion from and to legacy formats.
# Set to False to use LibreOffice for convertion from and to legacy formats.
USE_ABI = True
# Set to False to avoid appearing in Sopinspace Piwik statistics
TRACKING_ID = False
@@ -5,7 +5,12 @@
# mkdir /var/www/.qt ; chown www-data:www-data /var/www/.qt
# mkdir /var/www/.kde ; chown www-data:www-data /var/www/.kde
UNO_IMPORT = True
# FIXME: use a setting or do this uno stuff lazily
try:
import uno
UNO_IMPORT = True
except:
UNO_IMPORT = False
if UNO_IMPORT:
import uno

0 comments on commit 77248d0

Please sign in to comment.