Update ci_templates/.cic-template.yml, apps/cic-eth/.gitlab-ci.yml files
This commit is contained in:
parent
0e0276b550
commit
e708b7e407
@ -13,13 +13,19 @@ build-mr-cic-eth:
|
|||||||
- .cic_eth_changes_target
|
- .cic_eth_changes_target
|
||||||
- .py_build_merge_request
|
- .py_build_merge_request
|
||||||
- .cic_eth_variables
|
- .cic_eth_variables
|
||||||
variables:
|
|
||||||
PYTHONPATH: .
|
build-mr-unittest-cic-eth:
|
||||||
after_script:
|
extends:
|
||||||
- pip install -r test_requirements.txt
|
- .cic_eth_changes_target
|
||||||
- pytest tests/unit/
|
- .cic_eth_variables
|
||||||
- pytest tests/task/
|
- .py_build_unittest_merge_request
|
||||||
- pytest tests/filters/
|
|
||||||
|
test-mr-unittest-cic-eth:
|
||||||
|
extends:
|
||||||
|
- .cic_eth_changes_target
|
||||||
|
- .cic_eth_variables
|
||||||
|
- .py_unittest_merge_request
|
||||||
|
|
||||||
|
|
||||||
build-push-cic-eth:
|
build-push-cic-eth:
|
||||||
extends:
|
extends:
|
||||||
|
@ -18,6 +18,27 @@ variables:
|
|||||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
when: always
|
when: always
|
||||||
|
|
||||||
|
.py_build_unittest_merge_request:
|
||||||
|
stage: build
|
||||||
|
variables:
|
||||||
|
- CI_DEBUG_TRACE: "true"
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- $APP-test-image.tar
|
||||||
|
expire_in: 1 week
|
||||||
|
when: on_success
|
||||||
|
script:
|
||||||
|
- mkdir -p /kaniko/.docker
|
||||||
|
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > "/kaniko/.docker/config.json"
|
||||||
|
- /kaniko/executor --context $CONTEXT --dockerfile $DOCKERFILE_PATH $KANIKO_CACHE_ARGS --cache-repo $CI_REGISTRY_IMAGE --target test --tarPath $APP-test-image.tar
|
||||||
|
|
||||||
|
|
||||||
|
.py_unittest_merge_request:
|
||||||
|
stage: test
|
||||||
|
scripts:
|
||||||
|
- docker load -i $APP-test-image.tar
|
||||||
|
- docker images
|
||||||
|
|
||||||
.py_build_push:
|
.py_build_push:
|
||||||
stage: build
|
stage: build
|
||||||
variables:
|
variables:
|
||||||
|
Loading…
Reference in New Issue
Block a user