Skip to content

Commit b6a4893

Browse files
author
Andrey Fedoseev
committed
Merge pull request #34 from sir-sigurd/django-1.7
django 1.7 tests
2 parents 1791dc6 + b1dbd87 commit b6a4893

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.travis.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,24 @@ python:
33
- "3.3"
44
- "2.7"
55
- "2.6"
6-
env: DJANGO_SETTINGS_MODULE="static_precompiler.tests.django_settings"
6+
env:
7+
global:
8+
- DJANGO_SETTINGS_MODULE="static_precompiler.tests.django_settings"
9+
matrix:
10+
- DJANGO_VERSION=1.6.6
11+
- DJANGO_VERSION=1.7
12+
matrix:
13+
exclude:
14+
- python: "2.6"
15+
env: DJANGO_VERSION=1.7
716
before_install:
817
- npm install -g coffee-script
9-
- npm install -g less
18+
- npm install -g less@1.7.4
1019
- gem install sass --version 3.3.14
1120
- gem install compass --version 1.0.1
1221
install:
1322
- pip install coveralls
14-
- pip install django
23+
- pip install django==$DJANGO_VERSION
1524
- pip install six
1625
- pip install mock
1726
- pip install watchdog

static_precompiler/tests/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ def suite():
1111
from static_precompiler.tests import test_templatetags
1212
from static_precompiler.tests import test_management
1313

14+
try:
15+
# django 1.7+
16+
from django import setup
17+
setup()
18+
except ImportError:
19+
pass
20+
1421
test_suite = unittest.TestSuite()
1522
test_suite.addTests(test_base_compiler.suite())
1623
test_suite.addTests(test_url_converter.suite())

0 commit comments

Comments
 (0)