Commit b8cec3ce by Timothée Peignier

Fix tests and documentation generation

parent 5aa01730
language: python language: python
sudo: false sudo: false
env: env:
- TOXENV=py27-1.7.X - TOXENV=py27-django18
- TOXENV=pypy-1.7.X - TOXENV=pypy-django18
- TOXENV=py33-1.7.X - TOXENV=py34-django18
- TOXENV=py34-1.7.X - TOXENV=py27-django19
- TOXENV=py27 - TOXENV=pypy-django19
- TOXENV=pypy - TOXENV=py34-django19
- TOXENV=py33
- TOXENV=py34
docsinstall: pip install -q tox docsinstall: pip install -q tox
script: tox script: tox
...@@ -5,7 +5,7 @@ Configuration ...@@ -5,7 +5,7 @@ Configuration
============= =============
Configuration and list of available settings for Pipeline. Pipeline settings are namespaced in a PIPELINE dictionary in your project settings, e.g.: Configuration and list of available settings for Pipeline. Pipeline settings are namespaced in a PIPELINE dictionary in your project settings, e.g.: ::
PIPELINE = { PIPELINE = {
'PIPELINE_ENABLED': True, 'PIPELINE_ENABLED': True,
...@@ -32,7 +32,6 @@ syntax to select multiples files. ...@@ -32,7 +32,6 @@ syntax to select multiples files.
The basic syntax for specifying CSS/JavaScript groups files is :: The basic syntax for specifying CSS/JavaScript groups files is ::
PIPELINE = { PIPELINE = {
'STYLESHEETS': { 'STYLESHEETS': {
'colors': { 'colors': {
'source_filenames': ( 'source_filenames': (
...@@ -46,7 +45,6 @@ The basic syntax for specifying CSS/JavaScript groups files is :: ...@@ -46,7 +45,6 @@ The basic syntax for specifying CSS/JavaScript groups files is ::
}, },
}, },
}, },
'JAVASCRIPT': { 'JAVASCRIPT': {
'stats': { 'stats': {
'source_filenames': ( 'source_filenames': (
...@@ -271,7 +269,7 @@ Wrapped javascript output ...@@ -271,7 +269,7 @@ Wrapped javascript output
All javascript output is wrapped in an anonymous function : :: All javascript output is wrapped in an anonymous function : ::
(function(){ (function(){
//JS output... //JS output...
})(); })();
......
...@@ -35,7 +35,7 @@ Installation ...@@ -35,7 +35,7 @@ Installation
.. _PyPI: http://pypi.python.org/pypi/django-pipeline .. _PyPI: http://pypi.python.org/pypi/django-pipeline
Upgrading from 1.3 Upgrading from 1.3
================ ==================
To upgrade from pipeline 1.3, you will need to follow these steps: To upgrade from pipeline 1.3, you will need to follow these steps:
......
...@@ -59,7 +59,7 @@ class Compressor(object): ...@@ -59,7 +59,7 @@ class Compressor(object):
if templates: if templates:
js = js + self.compile_templates(templates) js = js + self.compile_templates(templates)
if not settings.PIPELINE_DISABLE_WRAPPER: if not settings.DISABLE_WRAPPER:
js = "(function() {\n%s\n}).call(this);" % js js = "(function() {\n%s\n}).call(this);" % js
compressor = self.js_compressor compressor = self.js_compressor
......
...@@ -61,6 +61,8 @@ DEFAULTS = { ...@@ -61,6 +61,8 @@ DEFAULTS = {
'LESS_BINARY': '/usr/bin/env lessc', 'LESS_BINARY': '/usr/bin/env lessc',
'LESS_ARGUMENTS': '', 'LESS_ARGUMENTS': '',
'DISABLE_WRAPPER': False,
'MIMETYPES': ( 'MIMETYPES': (
(b'text/coffeescript', '.coffee'), (b'text/coffeescript', '.coffee'),
(b'text/less', '.less'), (b'text/less', '.less'),
......
...@@ -133,4 +133,4 @@ TEMPLATES = [ ...@@ -133,4 +133,4 @@ TEMPLATES = [
'APP_DIRS': True, 'APP_DIRS': True,
'DIRS': TEMPLATE_DIRS, 'DIRS': TEMPLATE_DIRS,
} }
] ]
\ No newline at end of file
[tox] [tox]
envlist = envlist =
py27-1.8.X, pypy-1.8.X, py34-1.8.X, {py27,pypy,py34}-django{18,19}
py27, pypy, py34, py35 py35-1.9
docs docs
[testenv] [testenv]
basepython =
py27: python2.7
pypy: pypy
py34: python3.4
py35: python3.5
deps =
py{27,py}: mock
py{27,py}: futures
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
jinja2
setenv = setenv =
DJANGO_SETTINGS_MODULE = tests.settings DJANGO_SETTINGS_MODULE = tests.settings
PYTHONPATH = {toxinidir} PYTHONPATH = {toxinidir}
commands = commands =
{envbindir}/django-admin.py test {posargs:tests} {envbindir}/django-admin.py test {posargs:tests}
[testenv:py27-1.8.X]
basepython = python2.7
deps =
Django>=1.8, <1.9
mock
jinja2
futures
[testenv:py34-1.8.X]
basepython = python3.4
deps =
Django>=1.8, <1.9
jinja2
[testenv:pypy-1.8.X]
basepython = pypy
deps =
Django>=1.8, <1.9
mock
jinja2
futures
[testenv:py27]
basepython = python2.7
deps =
Django>=1.9 <1.10
mock
jinja2
futures
[testenv:pypy]
basepython = pypy
deps =
Django>=1.9 <1.10
mock
jinja2
futures
[testenv:py34]
basepython = python3.4
deps =
jinja2
Django>=1.9 <1.10
[testenv:py35]
basepython = python3.5
deps =
jinja2
Django>=1.9 <1.10
[testenv:docs] [testenv:docs]
basepython = python2.7 basepython = python2.7
changedir = docs changedir = docs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment