2021-02-05 21:49:15 +01:00
|
|
|
.cic_eth_variables:
|
2021-02-05 17:06:31 +01:00
|
|
|
variables:
|
|
|
|
APP_NAME: cic-eth
|
|
|
|
DOCKERFILE_PATH: $APP_NAME/docker/Dockerfile
|
2021-02-05 16:53:15 +01:00
|
|
|
|
2021-02-10 04:03:35 +01:00
|
|
|
.cic_eth_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/**/*
|
|
|
|
when: always
|
2021-02-05 16:53:15 +01:00
|
|
|
|
|
|
|
build-mr-cic-eth:
|
|
|
|
extends:
|
2021-05-25 18:22:26 +02:00
|
|
|
- .cic_eth_variables
|
2021-02-10 04:03:35 +01:00
|
|
|
- .cic_eth_changes_target
|
2021-05-25 18:22:26 +02:00
|
|
|
- .py_build_target_test
|
|
|
|
|
|
|
|
test-mr-cic-eth:
|
|
|
|
extends:
|
2021-02-05 21:49:15 +01:00
|
|
|
- .cic_eth_variables
|
2021-05-25 18:22:26 +02:00
|
|
|
- .cic_eth_changes_target
|
|
|
|
stage: test
|
|
|
|
image: $CI_REGISTRY_IMAGE/$APP_NAME-test:latest
|
|
|
|
script:
|
|
|
|
- cd apps/$APP_NAME/
|
|
|
|
- pytest tests/unit/
|
|
|
|
- pytest tests/task/
|
|
|
|
- pytest tests/filters/
|
|
|
|
needs: ["build-mr-cic-eth"]
|
2021-02-01 18:12:51 +01:00
|
|
|
|
2021-02-05 16:53:15 +01:00
|
|
|
build-push-cic-eth:
|
2021-02-01 18:12:51 +01:00
|
|
|
extends:
|
2021-02-05 16:53:15 +01:00
|
|
|
- .py_build_push
|
2021-02-05 21:49:15 +01:00
|
|
|
- .cic_eth_variables
|