Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Backend
Commits
d50a05d8
Commit
d50a05d8
authored
6 years ago
by
Bastien Abadie
Browse files
Options
Downloads
Plain Diff
Django nose is optional + Codecov
See merge request
!79
parents
c62d91d1
9f61131b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!79
Django nose is optional.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-1
2 additions, 1 deletion
.gitlab-ci.yml
arkindex/project/settings.py
+11
-7
11 additions, 7 deletions
arkindex/project/settings.py
with
13 additions
and
8 deletions
.gitlab-ci.yml
+
2
−
1
View file @
d50a05d8
...
...
@@ -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
-
co
verage report
-
co
decov
This diff is collapsed.
Click to expand it.
arkindex/project/settings.py
+
11
−
7
View file @
d50a05d8
...
...
@@ -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
:
...
...
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