Skip to content
Snippets Groups Projects
Commit ca590126 authored by Justin Caratzas's avatar Justin Caratzas Committed by GitHub
Browse files

Merge pull request #66 from django-haystack/fix-travis

Fix travis matrix
parents 50d73598 5ff44015
No related branches found
No related tags found
No related merge requests found
language: python language: python
python: python:
- "2.7" - "2.7"
- "3.3"
- "3.4" - "3.4"
- "3.5" - "3.5"
- "3.6"
before_install: before_install:
- export DJANGO_SETTINGS_MODULE=celery_haystack.test_settings - export DJANGO_SETTINGS_MODULE=celery_haystack.test_settings
install: install:
- pip install -e . - pip install -e .
- pip install -r requirements/v2.txt $DJANGO - pip install -r requirements/v2.txt $DJANGO
before_script: before_script:
- flake8 celery_haystack --ignore=E501 - flake8 celery_haystack --ignore=E501,E731
script: script:
- coverage run --branch --source=celery_haystack `which django-admin.py` test celery_haystack - coverage run --branch --source=celery_haystack `which django-admin.py` test celery_haystack
- coverage report --omit=celery_haystack/test* - coverage report --omit=celery_haystack/test*
env: env:
- DJANGO="Django==1.8.7" - DJANGO="Django>=1.8,<1.9"
- DJANGO="Django==1.9" - DJANGO="Django>=1.9,<1.10"
matrix: - DJANGO="Django>=1.10,<1.11"
exclude: - DJANGO="Django>=1.11,<1.12"
- env: DJANGO="Django==1.9"
python: "3.3" notifications:
irc: "irc.freenode.org#haystack"
from django.core.exceptions import ImproperlyConfigured from django.core.exceptions import ImproperlyConfigured
from django.core.management import call_command from django.core.management import call_command
from django.apps import apps from django.apps import apps
get_model = apps.get_model
from .conf import settings from .conf import settings
...@@ -44,7 +43,7 @@ class CeleryHaystackSignalHandler(Task): ...@@ -44,7 +43,7 @@ class CeleryHaystackSignalHandler(Task):
bits = object_path.split('.') bits = object_path.split('.')
app_name = '.'.join(bits[:-1]) app_name = '.'.join(bits[:-1])
classname = bits[-1] classname = bits[-1]
model_class = get_model(app_name, classname) model_class = apps.get_model(app_name, classname)
if model_class is None: if model_class is None:
raise ImproperlyConfigured("Could not load model '%s'." % raise ImproperlyConfigured("Could not load model '%s'." %
......
...@@ -12,7 +12,6 @@ TEST_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), 'tests')) ...@@ -12,7 +12,6 @@ TEST_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), 'tests'))
INSTALLED_APPS = [ INSTALLED_APPS = [
'haystack', 'haystack',
'djcelery',
'celery_haystack', 'celery_haystack',
'celery_haystack.tests', 'celery_haystack.tests',
] ]
......
django-discover-runner django-discover-runner
django-haystack django-haystack
django-celery
celery celery
Whoosh Whoosh
flake8 flake8
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment