2021-02-05 21:49:15 +01:00
|
|
|
.cic_eth_variables:
|
2021-02-05 17:06:31 +01:00
|
|
|
variables:
|
|
|
|
APP_NAME: cic-eth
|
2021-02-05 16:53:15 +01:00
|
|
|
|
2021-08-19 18:29:41 +02:00
|
|
|
#build-mr-cic-eth:
|
|
|
|
# extends:
|
|
|
|
# - .cic_eth_variables
|
|
|
|
# - .py_build_target_dev
|
|
|
|
# rules:
|
|
|
|
# - if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
|
|
# changes:
|
|
|
|
# - apps/cic-eth/**/*
|
|
|
|
# when: always
|
2021-02-05 16:53:15 +01:00
|
|
|
|
2021-05-25 18:22:26 +02:00
|
|
|
test-mr-cic-eth:
|
2021-07-10 17:46:14 +02:00
|
|
|
stage: test
|
2021-08-19 18:29:41 +02:00
|
|
|
tags:
|
|
|
|
- integration
|
2021-05-25 18:22:26 +02:00
|
|
|
extends:
|
2021-02-05 21:49:15 +01:00
|
|
|
- .cic_eth_variables
|
2021-07-10 17:46:14 +02:00
|
|
|
cache:
|
2021-08-19 18:29:41 +02:00
|
|
|
key:
|
|
|
|
files:
|
|
|
|
- test_requirements.txt
|
|
|
|
paths:
|
|
|
|
- /root/.cache/pip
|
|
|
|
image: registry.gitlab.com/grassrootseconomics/cic-internal-integration/$APP_NAME:$MR_IMAGE_TAG
|
2021-05-25 18:22:26 +02:00
|
|
|
script:
|
|
|
|
- cd apps/$APP_NAME/
|
2021-07-10 17:46:14 +02:00
|
|
|
- >
|
|
|
|
pip install --extra-index-url https://pip.grassrootseconomics.net:8433
|
|
|
|
--extra-index-url https://gitlab.com/api/v4/projects/27624814/packages/pypi/simple
|
|
|
|
-r admin_requirements.txt
|
|
|
|
-r services_requirements.txt
|
|
|
|
-r test_requirements.txt
|
|
|
|
- export PYTHONPATH=. && pytest -x --cov=cic_eth --cov-fail-under=90 --cov-report term-missing tests
|
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
|
2021-02-01 18:12:51 +01:00
|
|
|
|
2021-08-19 18:29:41 +02:00
|
|
|
#build-push-cic-eth:
|
|
|
|
# extends:
|
|
|
|
# - .py_build_push
|
|
|
|
# - .cic_eth_variables
|
|
|
|
# rules:
|
|
|
|
# - if: $CI_COMMIT_BRANCH == "master"
|
|
|
|
# changes:
|
|
|
|
# - apps/cic-eth/**/*
|
|
|
|
# when: always
|