From 048f1167871621d0d905ec54824e414c13e9e2a4 Mon Sep 17 00:00:00 2001
From: janmax <j.michal@stud.uni-goettingen.de>
Date: Fri, 24 Nov 2017 02:06:25 +0100
Subject: [PATCH] Fixing the gitlab artifacts path and adjusted code coverage

---
 .gitlab-ci.yml      | 5 ++---
 backend/.coveragerc | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 49d5c443..85439ac8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -32,7 +32,7 @@ test_pytest:
                 - DJANGO_SETTINGS_MODULE=grady.settings pytest --cov
         artifacts:
                 paths:
-                        - .coverage
+                        - backend/.coverage
 
 test_prospector:
         <<: *test_definition_backend
@@ -58,8 +58,7 @@ test_coverage:
         stage:
                 pages
         script:
-                - mkdir public
-                - coverage html
+                - coverage html -d ../public
         dependencies:
                 - test_pytest
         artifacts:
diff --git a/backend/.coveragerc b/backend/.coveragerc
index cd760040..f578fcfa 100644
--- a/backend/.coveragerc
+++ b/backend/.coveragerc
@@ -1,6 +1,6 @@
 [run]
 branch = True
-source = core,util
+source = core,util.factories
 omit =
     core/migrations/*
     core/apps.py
-- 
GitLab