Update apps/cic-eth/.gitlab-ci.yml
This commit is contained in:
parent
4c420bdcfd
commit
a123122ed9
@ -3,34 +3,28 @@
|
|||||||
APP_NAME: cic-eth
|
APP_NAME: cic-eth
|
||||||
DOCKERFILE_PATH: $APP_NAME/docker/Dockerfile
|
DOCKERFILE_PATH: $APP_NAME/docker/Dockerfile
|
||||||
|
|
||||||
# .cic_eth_changes_target:
|
.cic_eth_mr_changes_target:
|
||||||
# rules:
|
rules:
|
||||||
# - if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
# changes:
|
changes:
|
||||||
# - $CONTEXT/$APP_NAME/**/*
|
- $CONTEXT/$APP_NAME/**/*
|
||||||
# when: always
|
when: always
|
||||||
|
|
||||||
build-mr-cic-eth:
|
build-mr-cic-eth:
|
||||||
extends:
|
extends:
|
||||||
- .cic_eth_variables
|
- .cic_eth_variables
|
||||||
# - .cic_eth_changes_target
|
- .cic_eth_mr_changes_target
|
||||||
- .py_build_target_test
|
- .py_build_target_test
|
||||||
rules:
|
|
||||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
||||||
changes:
|
|
||||||
- apps/cic-eth/**/*
|
|
||||||
when: always
|
|
||||||
|
|
||||||
|
|
||||||
test-mr-cic-eth:
|
test-mr-cic-eth:
|
||||||
extends:
|
extends:
|
||||||
- .cic_eth_variables
|
- .cic_eth_variables
|
||||||
|
- .cic_eth_mr_changes_target
|
||||||
stage: test
|
stage: test
|
||||||
image: $IMAGE_TAG_BASE
|
image: $IMAGE_TAG_BASE
|
||||||
script:
|
script:
|
||||||
- cd apps/$APP_NAME/
|
- cd apps/$APP_NAME/
|
||||||
- pytest -x --cov=cic_eth --cov-fail-under=90 --cov-report term-missing tests
|
- pytest -x --cov=cic_eth --cov-fail-under=90 --cov-report term-missing tests
|
||||||
needs: ["build-mr-cic-eth"]
|
|
||||||
|
|
||||||
build-push-cic-eth:
|
build-push-cic-eth:
|
||||||
extends:
|
extends:
|
||||||
|
Loading…
Reference in New Issue
Block a user