2021-02-08 18:31:29 +01:00
|
|
|
|
|
|
|
.cic_meta_variables:
|
|
|
|
variables:
|
|
|
|
APP_NAME: cic-meta
|
|
|
|
DOCKERFILE_PATH: $APP_NAME/docker/Dockerfile
|
2021-07-06 22:27:32 +02:00
|
|
|
CONTEXT: apps
|
2021-02-08 18:31:29 +01:00
|
|
|
|
2021-07-06 22:05:18 +02:00
|
|
|
build-mr-cic-meta:
|
|
|
|
extends:
|
|
|
|
- .py_build_merge_request
|
2021-07-07 23:24:26 +02:00
|
|
|
- .cic_meta_variables
|
2021-02-08 18:31:29 +01:00
|
|
|
rules:
|
2021-07-06 22:05:18 +02:00
|
|
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
|
|
changes:
|
|
|
|
- apps/cic-meta/**/*
|
|
|
|
when: always
|
2021-06-07 18:11:03 +02:00
|
|
|
|
|
|
|
test-mr-cic-meta:
|
2021-02-08 18:31:29 +01:00
|
|
|
extends:
|
|
|
|
- .cic_meta_variables
|
2021-06-07 18:11:03 +02:00
|
|
|
stage: test
|
2021-07-06 22:05:18 +02:00
|
|
|
image: $MR_IMAGE_TAG
|
2021-06-07 18:11:03 +02:00
|
|
|
script:
|
|
|
|
- cd /tmp/src/cic-meta
|
|
|
|
- npm install --dev
|
|
|
|
- npm run test
|
|
|
|
- npm run test:coverage
|
2021-07-06 22:31:12 +02:00
|
|
|
needs: ["build-mr-cic-meta"]
|
2021-07-06 22:05:18 +02:00
|
|
|
rules:
|
|
|
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
|
|
changes:
|
|
|
|
- apps/cic-meta/**/*
|
|
|
|
when: always
|
2021-02-08 18:31:29 +01:00
|
|
|
|
|
|
|
build-push-cic-meta:
|
|
|
|
extends:
|
|
|
|
- .py_build_push
|
|
|
|
- .cic_meta_variables
|
2021-07-06 22:05:18 +02:00
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_BRANCH == "master"
|
|
|
|
changes:
|
|
|
|
- apps/cic-meta/**/*
|
|
|
|
when: always
|