Loading .gitlab-ci.yml +3 −2 Original line number Diff line number Diff line Loading @@ -2,10 +2,11 @@ stages: - build - test - unit_test - integ_test - dependencies - deploy - integration - functional - funct_test # include the individual .gitlab-ci.yml of each micro-service include: Loading src/context/.gitlab-ci.yml +3 −3 Original line number Diff line number Diff line Loading @@ -17,12 +17,12 @@ build context: - .gitlab-ci.yml # Pull, execute, and run unitary tests for the Docker image from the GitLab registry test context: unit_test context: variables: IMAGE_NAME: 'context' # name of the microservice IMAGE_NAME_TEST: 'context-test' # name of the microservice IMAGE_TAG: 'latest' # tag of the container image (production, development, etc) stage: test stage: unit_test needs: - build context before_script: Loading @@ -49,7 +49,7 @@ deploy context: stage: deploy needs: - build context - test context - unit_test context - dependencies all script: - kubectl version Loading src/device/.gitlab-ci.yml +3 −3 Original line number Diff line number Diff line Loading @@ -17,12 +17,12 @@ build device: - .gitlab-ci.yml # Pull, execute, and run unitary tests for the Docker image from the GitLab registry test device: unit_test device: variables: IMAGE_NAME: 'device' # name of the microservice IMAGE_NAME_TEST: 'device-test' # name of the microservice IMAGE_TAG: 'latest' # tag of the container image (production, development, etc) stage: test stage: unit_test needs: - build device before_script: Loading @@ -49,7 +49,7 @@ deploy device: stage: deploy needs: - build device - test device - unit_test device - dependencies all script: - kubectl version Loading src/service/.gitlab-ci.yml +3 −3 Original line number Diff line number Diff line Loading @@ -17,12 +17,12 @@ build service: - .gitlab-ci.yml # Pull, execute, and run unitary tests for the Docker image from the GitLab registry test service: unit_test service: variables: IMAGE_NAME: 'service' # name of the microservice IMAGE_NAME_TEST: 'service-test' # name of the microservice IMAGE_TAG: 'latest' # tag of the container image (production, development, etc) stage: test stage: unit_test needs: - build service before_script: Loading @@ -49,7 +49,7 @@ deploy service: stage: deploy needs: - build service - test service - unit_test service - dependencies all script: - kubectl version Loading src/tester_functional/.gitlab-ci.yml +7 −6 Original line number Diff line number Diff line # Build, tag, and push the Docker images to the GitLab Docker registry build tester_functional: build funct_test: variables: IMAGE_NAME: 'tester_functional' # name of the microservice IMAGE_TAG: 'latest' # tag of the container image (production, development, etc) Loading @@ -20,13 +20,13 @@ build tester_functional: - .gitlab-ci.yml # Pull, execute, and run unitary tests for the Docker image from the GitLab registry test tester_functional: unit_test funct_test: variables: IMAGE_NAME: 'tester_functional' # name of the microservice IMAGE_TAG: 'latest' # tag of the container image (production, development, etc) stage: test needs: - build tester_functional - build funct_test before_script: - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY script: Loading @@ -41,18 +41,19 @@ test tester_functional: - .gitlab-ci.yml # Run functional tests in Kubernetes Cluster functional tester_functional: functional execute: variables: IMAGE_NAME: 'tester_functional' # name of the microservice IMAGE_TAG: 'latest' # tag of the container image (production, development, etc) stage: functional needs: - build tester_functional - test tester_functional - build funct_test - unit_test funct_test - deploy context - deploy device - deploy service - dependencies all - integ_test execute before_script: - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY script: Loading Loading
.gitlab-ci.yml +3 −2 Original line number Diff line number Diff line Loading @@ -2,10 +2,11 @@ stages: - build - test - unit_test - integ_test - dependencies - deploy - integration - functional - funct_test # include the individual .gitlab-ci.yml of each micro-service include: Loading
src/context/.gitlab-ci.yml +3 −3 Original line number Diff line number Diff line Loading @@ -17,12 +17,12 @@ build context: - .gitlab-ci.yml # Pull, execute, and run unitary tests for the Docker image from the GitLab registry test context: unit_test context: variables: IMAGE_NAME: 'context' # name of the microservice IMAGE_NAME_TEST: 'context-test' # name of the microservice IMAGE_TAG: 'latest' # tag of the container image (production, development, etc) stage: test stage: unit_test needs: - build context before_script: Loading @@ -49,7 +49,7 @@ deploy context: stage: deploy needs: - build context - test context - unit_test context - dependencies all script: - kubectl version Loading
src/device/.gitlab-ci.yml +3 −3 Original line number Diff line number Diff line Loading @@ -17,12 +17,12 @@ build device: - .gitlab-ci.yml # Pull, execute, and run unitary tests for the Docker image from the GitLab registry test device: unit_test device: variables: IMAGE_NAME: 'device' # name of the microservice IMAGE_NAME_TEST: 'device-test' # name of the microservice IMAGE_TAG: 'latest' # tag of the container image (production, development, etc) stage: test stage: unit_test needs: - build device before_script: Loading @@ -49,7 +49,7 @@ deploy device: stage: deploy needs: - build device - test device - unit_test device - dependencies all script: - kubectl version Loading
src/service/.gitlab-ci.yml +3 −3 Original line number Diff line number Diff line Loading @@ -17,12 +17,12 @@ build service: - .gitlab-ci.yml # Pull, execute, and run unitary tests for the Docker image from the GitLab registry test service: unit_test service: variables: IMAGE_NAME: 'service' # name of the microservice IMAGE_NAME_TEST: 'service-test' # name of the microservice IMAGE_TAG: 'latest' # tag of the container image (production, development, etc) stage: test stage: unit_test needs: - build service before_script: Loading @@ -49,7 +49,7 @@ deploy service: stage: deploy needs: - build service - test service - unit_test service - dependencies all script: - kubectl version Loading
src/tester_functional/.gitlab-ci.yml +7 −6 Original line number Diff line number Diff line # Build, tag, and push the Docker images to the GitLab Docker registry build tester_functional: build funct_test: variables: IMAGE_NAME: 'tester_functional' # name of the microservice IMAGE_TAG: 'latest' # tag of the container image (production, development, etc) Loading @@ -20,13 +20,13 @@ build tester_functional: - .gitlab-ci.yml # Pull, execute, and run unitary tests for the Docker image from the GitLab registry test tester_functional: unit_test funct_test: variables: IMAGE_NAME: 'tester_functional' # name of the microservice IMAGE_TAG: 'latest' # tag of the container image (production, development, etc) stage: test needs: - build tester_functional - build funct_test before_script: - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY script: Loading @@ -41,18 +41,19 @@ test tester_functional: - .gitlab-ci.yml # Run functional tests in Kubernetes Cluster functional tester_functional: functional execute: variables: IMAGE_NAME: 'tester_functional' # name of the microservice IMAGE_TAG: 'latest' # tag of the container image (production, development, etc) stage: functional needs: - build tester_functional - test tester_functional - build funct_test - unit_test funct_test - deploy context - deploy device - deploy service - dependencies all - integ_test execute before_script: - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY script: Loading