cic-internal-integration/apps/cic-notify/.gitlab-ci.yml

42 lines
1.2 KiB
YAML
Raw Normal View History

2021-02-07 03:29:24 +01:00
.cic_notify_variables:
variables:
APP_NAME: cic-notify
2021-08-19 17:41:49 +02:00
#build-mr-cic-notify:
# extends:
# - .py_build_merge_request
# - .cic_notify_variables
# rules:
# - if: $CI_PIPELINE_SOURCE == "merge_request_event"
# changes:
# - apps/cic-notify/**/*
# when: always
test-mr-cic-notify:
stage: test
2021-08-19 17:41:49 +02:00
tags:
- integration
extends:
2021-08-19 17:41:49 +02:00
- .cic_notify_variables
cache:
2021-08-19 17:41:49 +02:00
key:
files:
- test_requirements.txt
paths:
- /root/.cache/pip
2021-08-19 17:41:49 +02:00
image: registry.gitlab.com/grassrootseconomics/cic-internal-integration/$APP_NAME:$MR_IMAGE_TAG
script:
- cd apps/$APP_NAME/
- >
pip install --extra-index-url https://pip.grassrootseconomics.net:8433
--extra-index-url https://gitlab.com/api/v4/projects/27624814/packages/pypi/simple
-r test_requirements.txt
- export PYTHONPATH=. && pytest -x --cov=cic_notify --cov-fail-under=90 --cov-report term-missing tests
2021-08-19 17:41:49 +02:00
allow_failure: true
needs: ["build-merge-request"]
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
changes:
- apps/$APP_NAME/**/*
when: always