Gitlab Community Edition Instance

Skip to content
Snippets Groups Projects
Unverified Commit 70d17d7e authored by Jan Maximilian Michal's avatar Jan Maximilian Michal
Browse files

Minor tweak to .gitlab-ci.yml to improve coverage output

parent a8ef4892
Branches
Tags
1 merge request!16Backend tests
Pipeline #
stages:
- build
- test
- pages
- staging
variables:
......@@ -23,23 +24,15 @@ build_backend:
before_script:
- cd backend/
test_coverage:
test_pytest:
<<: *test_definition_backend
services:
- postgres:9.5
script:
- coverage run manage.py test --noinput
- coverage html
- DJANGO_SETTINGS_MODULE=grady.settings pytest --cov
artifacts:
paths:
- public/
test_pytest:
<<: *test_definition_backend
services:
- postgres:9.5
script:
- DJANGO_SETTINGS_MODULE=grady.settings pytest
- .coverage
test_prospector:
<<: *test_definition_backend
......@@ -59,6 +52,20 @@ test_frontend:
- yarn install
- yarn test --single-run
# ============================ Gitlab pages section =========================== #
test_coverage:
<<: *test_definition_backend
stage:
pages
script:
- mkdir public
- coverage html
dependencies:
- test_pytest
artifacts:
paths:
- public
# ============================== Staging section ============================= #
.staging_template: &staging_definition
stage: staging
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment