Skip to content

Commit

Permalink
Move to djangocms-helper. Add travis support
Browse files Browse the repository at this point in the history
  • Loading branch information
yakky committed Sep 12, 2015
1 parent 9909b48 commit 8159050
Show file tree
Hide file tree
Showing 8 changed files with 79 additions and 59 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Expand Up @@ -6,6 +6,7 @@ XXXX-XX-XX
Version 1.7

* Move migrations to standard location
* Move to djangocms-helper for tests

----------
2015-06-09
Expand Down
4 changes: 4 additions & 0 deletions requirements-tests.txt
@@ -0,0 +1,4 @@
-r requirements.txt
tox>=1.8
djangocms-helper>=0.7
djangocms-text-ckeditor
1 change: 0 additions & 1 deletion requirements.txt
@@ -1,3 +1,2 @@
django-cms>=2.3
Django-Select2>=3.1.2
transifex-client
57 changes: 0 additions & 57 deletions schemamigration.py

This file was deleted.

2 changes: 2 additions & 0 deletions setup.cfg
@@ -0,0 +1,2 @@
[bdist_wheel]
universal=1
3 changes: 2 additions & 1 deletion setup.py
Expand Up @@ -35,5 +35,6 @@
classifiers=CLASSIFIERS,
long_description=open('README.rst').read(),
include_package_data=True,
zip_safe=False
zip_safe=False,
test_suite='test_settings.run',
)
54 changes: 54 additions & 0 deletions test_settings.py
@@ -0,0 +1,54 @@
# -*- coding: utf-8 -*-
from distutils.version import LooseVersion
import sys
from tempfile import mkdtemp
import django

gettext = lambda s: s

HELPER_SETTINGS = {
'INSTALLED_APPS': [
'django_select2',
'djangocms_text_ckeditor',
],
'LANGUAGE_CODE': 'en',
'LANGUAGES': (
('en', gettext('English')),
('fr', gettext('French')),
('it', gettext('Italiano')),
),
'CMS_LANGUAGES': {
1: [
{
'code': 'en',
'name': gettext('English'),
'public': True,
},
{
'code': 'it',
'name': gettext('Italiano'),
'public': True,
},
{
'code': 'fr',
'name': gettext('French'),
'public': True,
},
],
'default': {
'hide_untranslated': False,
},
},
'CMS_PERMISSION': True,
'FILE_UPLOAD_TEMP_DIR': mkdtemp(),
'SITE_ID': 1
}


def run():
from djangocms_helper import runner
runner.cms('djangocms_link')

if __name__ == "__main__":
run()

16 changes: 16 additions & 0 deletions tox.ini
@@ -0,0 +1,16 @@
[tox]
envlist = py{26}-django{16}-cms{30},py{27,33,34}-django{16,17}-cms{30},py{26}-django{16}-cms{31,32},py{27,33,34}-django{16,17,18}-cms{31,32}
skip_missing_interpreters=True

[testenv]
commands = {env:COMMAND:python} setup.py test

deps =
cms30: https://github.com/divio/django-cms/archive/support/3.0.x.zip
cms31: https://github.com/divio/django-cms/archive/support/3.1.x.zip
cms32: https://github.com/divio/django-cms/archive/develop.zip
https://github.com/nephila/djangocms-helper/archive/develop.zip
django16: django<1.7
django17: django<1.8
django18: django<1.9
coverage

0 comments on commit 8159050

Please sign in to comment.