Loading src/service/.gitlab-ci.yml +57 −3 Original line number Diff line number Diff line Loading @@ -30,13 +30,40 @@ build service: - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)' - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "develop"' - changes: # Common-triggers - src/common/**/*.py - proto/*.proto - .gitlab-ci.yml # Context-triggers - src/context/**/*.{py,in,yml} - src/context/Dockerfile - src/context/tests/*.py - src/context/tests/Dockerfile - manifests/contextservice.yaml # Device-triggers - src/device/**/*.{py,in,yml} - src/device/Dockerfile - src/device/tests/*.py - src/device/tests/Dockerfile - manifests/deviceservice.yaml # PathComp-triggers - src/pathcomp/.gitlab-ci.yml - src/pathcomp/frontend/**/*.{py,in,yml} - src/pathcomp/frontend/Dockerfile - src/pathcomp/frontend/tests/*.py - src/pathcomp/backend/**/*.{c,h,conf} - src/pathcomp/backend/Makefile - src/pathcomp/backend/Dockerfile - manifests/pathcompservice.yaml # Service-triggers - src/$IMAGE_NAME/**/*.{py,in,yml} - src/$IMAGE_NAME/Dockerfile - src/$IMAGE_NAME/tests/*.py - manifests/${IMAGE_NAME}service.yaml - .gitlab-ci.yml # Apply unit test to the component unit_test service: Loading Loading @@ -187,14 +214,41 @@ unit_test service: - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)' - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "develop"' - changes: # Common-triggers - src/common/**/*.py - proto/*.proto - .gitlab-ci.yml # Context-triggers - src/context/**/*.{py,in,yml} - src/context/Dockerfile - src/context/tests/*.py - src/context/tests/Dockerfile - manifests/contextservice.yaml # Device-triggers - src/device/**/*.{py,in,yml} - src/device/Dockerfile - src/device/tests/*.py - src/device/tests/Dockerfile - manifests/deviceservice.yaml # PathComp-triggers - src/pathcomp/.gitlab-ci.yml - src/pathcomp/frontend/**/*.{py,in,yml} - src/pathcomp/frontend/Dockerfile - src/pathcomp/frontend/tests/*.py - src/pathcomp/backend/**/*.{c,h,conf} - src/pathcomp/backend/Makefile - src/pathcomp/backend/Dockerfile - manifests/pathcompservice.yaml # Service-triggers - src/$IMAGE_NAME/**/*.{py,in,yml} - src/$IMAGE_NAME/Dockerfile - src/$IMAGE_NAME/tests/*.py - src/$IMAGE_NAME/tests/Dockerfile - manifests/${IMAGE_NAME}service.yaml - .gitlab-ci.yml artifacts: when: always reports: Loading Loading
src/service/.gitlab-ci.yml +57 −3 Original line number Diff line number Diff line Loading @@ -30,13 +30,40 @@ build service: - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)' - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "develop"' - changes: # Common-triggers - src/common/**/*.py - proto/*.proto - .gitlab-ci.yml # Context-triggers - src/context/**/*.{py,in,yml} - src/context/Dockerfile - src/context/tests/*.py - src/context/tests/Dockerfile - manifests/contextservice.yaml # Device-triggers - src/device/**/*.{py,in,yml} - src/device/Dockerfile - src/device/tests/*.py - src/device/tests/Dockerfile - manifests/deviceservice.yaml # PathComp-triggers - src/pathcomp/.gitlab-ci.yml - src/pathcomp/frontend/**/*.{py,in,yml} - src/pathcomp/frontend/Dockerfile - src/pathcomp/frontend/tests/*.py - src/pathcomp/backend/**/*.{c,h,conf} - src/pathcomp/backend/Makefile - src/pathcomp/backend/Dockerfile - manifests/pathcompservice.yaml # Service-triggers - src/$IMAGE_NAME/**/*.{py,in,yml} - src/$IMAGE_NAME/Dockerfile - src/$IMAGE_NAME/tests/*.py - manifests/${IMAGE_NAME}service.yaml - .gitlab-ci.yml # Apply unit test to the component unit_test service: Loading Loading @@ -187,14 +214,41 @@ unit_test service: - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)' - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "develop"' - changes: # Common-triggers - src/common/**/*.py - proto/*.proto - .gitlab-ci.yml # Context-triggers - src/context/**/*.{py,in,yml} - src/context/Dockerfile - src/context/tests/*.py - src/context/tests/Dockerfile - manifests/contextservice.yaml # Device-triggers - src/device/**/*.{py,in,yml} - src/device/Dockerfile - src/device/tests/*.py - src/device/tests/Dockerfile - manifests/deviceservice.yaml # PathComp-triggers - src/pathcomp/.gitlab-ci.yml - src/pathcomp/frontend/**/*.{py,in,yml} - src/pathcomp/frontend/Dockerfile - src/pathcomp/frontend/tests/*.py - src/pathcomp/backend/**/*.{c,h,conf} - src/pathcomp/backend/Makefile - src/pathcomp/backend/Dockerfile - manifests/pathcompservice.yaml # Service-triggers - src/$IMAGE_NAME/**/*.{py,in,yml} - src/$IMAGE_NAME/Dockerfile - src/$IMAGE_NAME/tests/*.py - src/$IMAGE_NAME/tests/Dockerfile - manifests/${IMAGE_NAME}service.yaml - .gitlab-ci.yml artifacts: when: always reports: Loading