Commit 79a93797 authored by Carlos Natalino's avatar Carlos Natalino
Browse files

Fixing issue with the path.

parent 8eae8a05
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -52,7 +52,7 @@ unit_test opticalattackmanager:
    - if docker container ls | grep $IMAGE_NAME; then docker rm -f $IMAGE_NAME; else echo "$IMAGE_NAME image is not in the system"; fi
    - if docker container ls | grep $IMAGE_NAME; then docker rm -f $IMAGE_NAME; else echo "$IMAGE_NAME image is not in the system"; fi
  script:
  script:
    - docker pull "$CI_REGISTRY_IMAGE/$IMAGE_NAME:$IMAGE_TAG"
    - docker pull "$CI_REGISTRY_IMAGE/$IMAGE_NAME:$IMAGE_TAG"
    - docker run --name $IMAGE_NAME -d -p 10005:10005 -v "$PWD/src/$IMAGE_NAME/tests:/home/teraflow/$IMAGE_NAME/results" --network=teraflowbridge $CI_REGISTRY_IMAGE/$IMAGE_NAME:$IMAGE_TAG
    - docker run --name $IMAGE_NAME -d -p 10005:10005 -v "$PWD/src/$IMAGE_NAME/tests:/home/$IMAGE_NAME/results" --network=teraflowbridge $CI_REGISTRY_IMAGE/$IMAGE_NAME:$IMAGE_TAG
    - docker ps -a
    - docker ps -a
    - docker logs $IMAGE_NAME
    - docker logs $IMAGE_NAME
    - docker exec -i $IMAGE_NAME bash -c "coverage run -m pytest --log-level=DEBUG --verbose $IMAGE_NAME/tests/test_unitary.py --junitxml=/home/${IMAGE_NAME}/results/${IMAGE_NAME}_report.xml; coverage report --include='${IMAGE_NAME}/*' --show-missing"
    - docker exec -i $IMAGE_NAME bash -c "coverage run -m pytest --log-level=DEBUG --verbose $IMAGE_NAME/tests/test_unitary.py --junitxml=/home/${IMAGE_NAME}/results/${IMAGE_NAME}_report.xml; coverage report --include='${IMAGE_NAME}/*' --show-missing"
@@ -73,10 +73,10 @@ unit_test opticalattackmanager:
      - src/$IMAGE_NAME/tests/Dockerfile
      - src/$IMAGE_NAME/tests/Dockerfile
      - manifests/${IMAGE_NAME}service.yaml
      - manifests/${IMAGE_NAME}service.yaml
      - .gitlab-ci.yml
      - .gitlab-ci.yml
  # artifacts:
  artifacts:
  #     when: always
      when: always
  #     reports:
      reports:
  #       junit: src/$IMAGE_NAME/tests/${IMAGE_NAME}_report.xml
        junit: src/$IMAGE_NAME/tests/${IMAGE_NAME}_report.xml


# Deployment of the service in Kubernetes Cluster
# Deployment of the service in Kubernetes Cluster
# deploy opticalattackmanager:
# deploy opticalattackmanager: