Skip to content
Snippets Groups Projects
Commit d50a05d8 authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Django nose is optional + Codecov

See merge request !79
parents c62d91d1 9f61131b
No related branches found
No related tags found
1 merge request!79Django nose is optional.
......@@ -21,9 +21,10 @@ backend-tests:
before_script:
- apk --update add postgresql-dev libjpeg-turbo-dev gcc musl-dev zlib-dev libmagic libxml2-dev libxslt-dev
- pip install codecov
script:
- python setup.py test
- pip install .[test]
- flake8
- coverage report
- codecov
......@@ -52,7 +52,6 @@ INSTALLED_APPS = [
'rest_framework',
'rest_framework.authtoken',
'webpack_loader',
'django_nose',
# Our apps
'arkindex.images',
......@@ -334,12 +333,17 @@ if os.environ.get('EMAIL_HOST'):
else:
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
# Unit tests runner
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
NOSE_ARGS = [
'--with-coverage',
'--cover-package=arkindex',
]
# Optional unit tests runner with code coverage
try:
import django_nose # noqa
INSTALLED_APPS.append('django_nose')
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
NOSE_ARGS = [
'--with-coverage',
'--cover-package=arkindex',
]
except ImportError:
pass
# Local settings
try:
......
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