cic-stack/apps/cic-eth/.gitlab-ci.yml

32 lines
735 B
YAML
Raw Normal View History

.cic_eth_variables:
variables:
APP_NAME: cic-eth
DOCKERFILE_PATH: $APP_NAME/docker/Dockerfile
.cic_eth_mr_changes_target:
2021-02-01 18:12:51 +01:00
rules:
2021-05-25 18:22:26 +02:00
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
changes:
- $CONTEXT/$APP_NAME/**/*
2021-05-25 18:22:26 +02:00
when: always
build-mr-cic-eth:
extends:
2021-05-25 18:22:26 +02:00
- .cic_eth_variables
- .cic_eth_mr_changes_target
2021-05-25 18:22:26 +02:00
- .py_build_target_test
test-mr-cic-eth:
extends:
- .cic_eth_variables
- .cic_eth_mr_changes_target
2021-05-25 18:22:26 +02:00
stage: test
image: $IMAGE_TAG_BASE
2021-05-25 18:22:26 +02:00
script:
- cd apps/$APP_NAME/
2021-05-31 17:34:16 +02:00
- pytest -x --cov=cic_eth --cov-fail-under=90 --cov-report term-missing tests
2021-02-01 18:12:51 +01:00
build-push-cic-eth:
2021-02-01 18:12:51 +01:00
extends:
- .py_build_push