Commit d9dd45c0 authored by David Mendez's avatar David Mendez

Activate unit tests

parent 67b619ba
Pipeline #93037 passed with stages
in 3 minutes and 14 seconds
......@@ -31,7 +31,7 @@ services:
stages:
- build
# - prepare_config_tests
- prepare_config_tests
- test_and_qa
# - prepare_config_staging
# - deploy_to_staging
......@@ -83,31 +83,31 @@ pylint:
### ---------------------------------------------------------------------------------------------------------------------
### Tests
### ---------------------------------------------------------------------------------------------------------------------
#prepare_config_tests:
# stage: prepare_config_tests
# image:
# name: alpine/git
# entrypoint: ["/bin/sh", "-c"]
# except:
# - schedules
# script:
# - set -x
# - mkdir -p ${CONFIGS_FOLDER}
# - git clone https://${CONFIG_DEPLOY_GITLAB_USERNAME}:${CONFIG_DEPLOY_GITLAB_TOKEN}@${CONFIGURATIONS_REPO} ${CONFIGS_FOLDER}
# artifacts:
# paths:
# - ${CONFIG_UNIT_TESTS_FILE_PATH}
#
#unit_tests:
# stage: test_and_qa
# image:
# name: $SERVER_IMAGE_TAG
# entrypoint: [""]
# except:
# - schedules
# script:
# - set -x
# - CONFIG_FILE_PATH=${CONFIG_UNIT_TESTS_FILE_PATH} python -m unittest
prepare_config_tests:
stage: prepare_config_tests
image:
name: alpine/git
entrypoint: ["/bin/sh", "-c"]
except:
- schedules
script:
- set -x
- mkdir -p ${CONFIGS_FOLDER}
- git clone https://${CONFIG_DEPLOY_GITLAB_USERNAME}:${CONFIG_DEPLOY_GITLAB_TOKEN}@${CONFIGURATIONS_REPO} ${CONFIGS_FOLDER}
artifacts:
paths:
- ${CONFIG_UNIT_TESTS_FILE_PATH}
unit_tests:
stage: test_and_qa
image:
name: $SERVER_IMAGE_TAG
entrypoint: [""]
except:
- schedules
script:
- set -x
- CONFIG_FILE_PATH=${CONFIG_UNIT_TESTS_FILE_PATH} python -m unittest
#
### ----------------------------------------------------------------------------------------------------------------------
### Deployment to staging
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment