Update .gitlab-ci.yml, apps/cic-eth/.gitlab-ci.yml, ci_templates/.cic-template.yml files

This commit is contained in:
Blair Vanderlugt 2021-05-23 02:11:18 +00:00
parent b656370c50
commit 575b2a196a
3 changed files with 18 additions and 14 deletions

View File

@ -9,6 +9,6 @@ include:
- local: 'apps/data-seeding/.gitlab-ci.yml' - local: 'apps/data-seeding/.gitlab-ci.yml'
stages: stages:
# - build - build
- test - test
- release - release

View File

@ -21,12 +21,16 @@ build-mr-unittest-cic-eth:
test-mr-cic-eth: test-mr-cic-eth:
extends: extends:
- .cic_eth_variables - .cic_eth_variables
- .py_unittest_merge_request stage: test
image: $CI_REGISTRY_IMAGE/$APP_NAME-test:latest
script:
- cd apps/$APP_NAME/
- pytest tests/unit/
rules: rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" - if: $CI_PIPELINE_SOURCE == "merge_request_event"
# changes: # changes:
# - $CONTEXT/$APP_NAME/**/* # - $CONTEXT/$APP_NAME/**/*
when: always when: always
build-push-cic-eth: build-push-cic-eth:

View File

@ -18,17 +18,17 @@ variables:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" - if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: always when: always
.py_build_unittest_merge_request: # .py_build_unittest_merge_request:
stage: build # stage: build
variables: # variables:
CI_DEBUG_TRACE: "true" # CI_DEBUG_TRACE: "true"
script: # script:
- mkdir -p /kaniko/.docker # - mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > "/kaniko/.docker/config.json" # - 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_NAME-test-image.tar --destination $CI_REGISTRY_IMAGE/$APP_NAME-test:latest # - /kaniko/executor --context $CONTEXT --dockerfile $DOCKERFILE_PATH $KANIKO_CACHE_ARGS --cache-repo $CI_REGISTRY_IMAGE --target test --tarPath $APP_NAME-test-image.tar --destination $CI_REGISTRY_IMAGE/$APP_NAME-test:latest
rules: # rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" # - if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: always # when: always
.py_unittest_merge_request: .py_unittest_merge_request: