2021-02-08 18:31:29 +01:00
|
|
|
|
|
|
|
.cic_meta_variables:
|
|
|
|
variables:
|
|
|
|
APP_NAME: cic-meta
|
2021-07-12 18:21:58 +02:00
|
|
|
DOCKERFILE_PATH: docker/Dockerfile_ci
|
|
|
|
CONTEXT: apps/$APP_NAME
|
2021-02-08 18:31:29 +01:00
|
|
|
|
2021-08-19 18:29:41 +02:00
|
|
|
#build-mr-cic-meta:
|
|
|
|
# extends:
|
|
|
|
# - .py_build_merge_request
|
|
|
|
# - .cic_meta_variables
|
|
|
|
# rules:
|
|
|
|
# - 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-08-19 18:29:41 +02:00
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- integration
|
2021-02-08 18:31:29 +01:00
|
|
|
extends:
|
|
|
|
- .cic_meta_variables
|
2021-08-19 18:29:41 +02:00
|
|
|
image: registry.gitlab.com/grassrootseconomics/cic-internal-integration/$APP_NAME:$MR_IMAGE_TAG
|
2021-06-07 18:11:03 +02:00
|
|
|
script:
|
2021-07-12 18:21:58 +02:00
|
|
|
- cd /root
|
2021-06-07 18:11:03 +02:00
|
|
|
- npm install --dev
|
|
|
|
- npm run test
|
|
|
|
- npm run test:coverage
|
2021-08-19 18:29:41 +02:00
|
|
|
allow_failure: true
|
|
|
|
needs: ["build-merge-request"]
|
2021-07-10 17:46:14 +02:00
|
|
|
rules:
|
|
|
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
|
|
changes:
|
2021-08-19 18:29:41 +02:00
|
|
|
- apps/$APP_NAME/**/*
|
2021-07-10 17:46:14 +02:00
|
|
|
when: always
|