Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
celery-haystack-ng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Libraries
celery-haystack-ng
Commits
ca590126
Commit
ca590126
authored
7 years ago
by
Justin Caratzas
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
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
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.travis.yml
+9
-8
9 additions, 8 deletions
.travis.yml
celery_haystack/tasks.py
+1
-2
1 addition, 2 deletions
celery_haystack/tasks.py
celery_haystack/test_settings.py
+0
-1
0 additions, 1 deletion
celery_haystack/test_settings.py
requirements/v2.txt
+0
-1
0 additions, 1 deletion
requirements/v2.txt
with
10 additions
and
12 deletions
.travis.yml
+
9
−
8
View file @
ca590126
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"
This diff is collapsed.
Click to expand it.
celery_haystack/tasks.py
+
1
−
2
View file @
ca590126
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
'
.
"
%
...
...
This diff is collapsed.
Click to expand it.
celery_haystack/test_settings.py
+
0
−
1
View file @
ca590126
...
@@ -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
'
,
]
]
...
...
This diff is collapsed.
Click to expand it.
requirements/v2.txt
+
0
−
1
View file @
ca590126
django-discover-runner
django-discover-runner
django-haystack
django-haystack
django-celery
celery
celery
Whoosh
Whoosh
flake8
flake8
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment