File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff 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
716before_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
1221install :
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
Original file line number Diff line number Diff 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 ())
You can’t perform that action at this time.
0 commit comments