Commit 9ab4aae4 authored by parciak's avatar parciak
Browse files

Added usage of docker image for testing instead of doing this on the shell.


Signed-off-by: parciak's avatarMarcel Parciak <marcel.parciak@gmail.com>
parent 54be4640
Pipeline #163054 failed with stages
in 1 minute and 33 seconds
......@@ -3,6 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
stages:
- build
- test
- publish
......@@ -13,30 +14,29 @@ variables:
COUCH_DB: "annotation_agent_test"
build_image:
stage: test
stage: build
tags:
- shell
- medic
- umg
before_script:
- docker info
- docker login --username $CI_REGISTRY_USER --password $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- docker build -t $CI_REGISTRY_IMAGE:latest .
- docker build -t $CI_REGISTRY_IMAGE:development .
- docker push $CI_REGISTRY_IMAGE:development
run_tests:
image: $CI_REGISTRY_IMAGE:development
stage: test
tags:
- shell
- docker
- medic
- umg
before_script:
- curl --connect-timeout 5 $CDSTAR_URI
- curl --connect-timeout 5 $COUCH_URI
- python3 -m pip install --upgrade pip
- python3 -m pip install -r requirements.txt
script:
- python3 -m pytest --junitxml=report.xml
......
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