Commit d0674ec9 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Improved GitLab CI pipeline for integration testing of context and device services

parent c3ff9dd3
Loading
Loading
Loading
Loading
+1 −0
Changes for .gitlab-ci.yml: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
stages:
  - build
  - test
  - dependencies
  - deploy

# include the individual .gitlab-ci.yml of each micro-service
+10 −0
Changes for manifests/.gitlab-ci.yml: 10 added lines, 0 removed lines.
Original line number Diff line number Diff line
# Deployment of dependencies in Kubernetes Cluster
dependencies context_device:
  stage: dependencies
  script:
    - kubectl version
    - kubectl get all
    - kubectl apply -f "manifests/redisdb.yaml"
    - kubectl delete pods --selector app=redisdb
    - kubectl get all
  when: manual
+1 −1
Changes for manifests/contextservice.yaml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ spec:
      terminationGracePeriodSeconds: 5
      containers:
      - name: server
        image: context_service:develop
        image: context:latest
        imagePullPolicy: Never
        ports:
        - containerPort: 1010
+1 −1
Changes for manifests/deviceservice.yaml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ spec:
      terminationGracePeriodSeconds: 5
      containers:
      - name: server
        image: device:dockerfile
        image: device:latest
        imagePullPolicy: Never
        ports:
        - containerPort: 2020
+2 −0
Changes for src/context/.gitlab-ci.yml: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -50,9 +50,11 @@ deploy context:
  needs:
    - build context
    - test context
    - dependencies context_device
  script:
    - kubectl version
    - kubectl get all
    - kubectl apply -f "manifests/contextservice.yaml"
    - kubectl delete pods --selector app=contextservice
    - kubectl get all
  when: manual
Loading