Skip to content
Snippets Groups Projects
Commit f173762e authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

CI/CD pipeline

- reduced dependencies since it breaks pipeline
parent 580088c1
No related branches found
No related tags found
2 merge requests!54Release 2.0.0,!34Context Scalability extensions using CockroachDB + Removal of Stateful database inside Device + other
......@@ -18,10 +18,7 @@ stages:
- build
- build
- test
- unit_test_stage1
- unit_test_stage2
- unit_test_stage3
- unit_test_stage4
- unit_test
#- deploy
#- end2end_test
......
......@@ -42,7 +42,7 @@ build automation:
unit_test automation:
variables:
REPORTS_CONTAINER: "${IMAGE_NAME}-reports"
stage: unit_test_stage1
stage: unit_test
needs:
- build automation
before_script:
......
......@@ -43,7 +43,7 @@ unit_test compute:
variables:
IMAGE_NAME: 'compute' # name of the microservice
IMAGE_TAG: 'latest' # tag of the container image (production, development, etc)
stage: unit_test_stage1
stage: unit_test
needs:
- build compute
before_script:
......
......@@ -43,7 +43,7 @@ unit_test context:
variables:
IMAGE_NAME: 'context' # name of the microservice
IMAGE_TAG: 'latest' # tag of the container image (production, development, etc)
stage: unit_test_stage1
stage: unit_test
needs:
- build context
before_script:
......
......@@ -43,7 +43,7 @@ unit_test device:
variables:
IMAGE_NAME: 'device' # name of the microservice
IMAGE_TAG: 'latest' # tag of the container image (production, development, etc)
stage: unit_test_stage1
stage: unit_test
needs:
- build device
before_script:
......
......@@ -43,7 +43,7 @@ unit_test monitoring:
variables:
IMAGE_NAME: 'monitoring' # name of the microservice
IMAGE_TAG: 'latest' # tag of the container image (production, development, etc)
stage: unit_test_stage1
stage: unit_test
needs:
- build monitoring
before_script:
......
......@@ -52,7 +52,7 @@ unit_test pathcomp-backend:
variables:
IMAGE_NAME: 'pathcomp' # name of the microservice
IMAGE_TAG: 'latest' # tag of the container image (production, development, etc)
stage: unit_test_stage1
stage: unit_test
needs:
- build pathcomp
before_script:
......@@ -97,10 +97,9 @@ unit_test pathcomp-frontend:
variables:
IMAGE_NAME: 'pathcomp' # name of the microservice
IMAGE_TAG: 'latest' # tag of the container image (production, development, etc)
stage: unit_test_stage2
stage: unit_test
needs:
- build pathcomp
- unit_test pathcomp-backend
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- if docker network list | grep teraflowbridge; then echo "teraflowbridge is already created"; else docker network create --driver=bridge --subnet=172.28.0.0/24 --gateway=172.28.0.254 teraflowbridge; fi
......
......@@ -42,7 +42,7 @@ build policy:
unit_test policy:
variables:
REPORTS_CONTAINER: "${IMAGE_NAME_POLICY}-reports"
stage: unit_test_stage1
stage: unit_test
needs:
- build policy
before_script:
......
......@@ -43,7 +43,7 @@ unit_test service:
variables:
IMAGE_NAME: 'service' # name of the microservice
IMAGE_TAG: 'latest' # tag of the container image (production, development, etc)
stage: unit_test_stage3
stage: unit_test
needs:
- build service
before_script:
......
......@@ -43,7 +43,7 @@ unit_test slice:
variables:
IMAGE_NAME: 'slice' # name of the microservice
IMAGE_TAG: 'latest' # tag of the container image (production, development, etc)
stage: unit_test_stage4
stage: unit_test
needs:
- build slice
- unit_test service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment