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: stages:
- build - build
- test - test
- pages
- staging - staging
variables: variables:
...@@ -23,23 +24,15 @@ build_backend: ...@@ -23,23 +24,15 @@ build_backend:
before_script: before_script:
- cd backend/ - cd backend/
test_coverage: test_pytest:
<<: *test_definition_backend <<: *test_definition_backend
services: services:
- postgres:9.5 - postgres:9.5
script: script:
- coverage run manage.py test --noinput - DJANGO_SETTINGS_MODULE=grady.settings pytest --cov
- coverage html
artifacts: artifacts:
paths: paths:
- public/ - .coverage
test_pytest:
<<: *test_definition_backend
services:
- postgres:9.5
script:
- DJANGO_SETTINGS_MODULE=grady.settings pytest
test_prospector: test_prospector:
<<: *test_definition_backend <<: *test_definition_backend
...@@ -59,6 +52,20 @@ test_frontend: ...@@ -59,6 +52,20 @@ test_frontend:
- yarn install - yarn install
- yarn test --single-run - 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 section ============================= #
.staging_template: &staging_definition .staging_template: &staging_definition
stage: staging stage: staging
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment