corrected tester.sh

This commit is contained in:
Andreas Balogh
2021-02-11 18:39:11 +01:00
parent b7e0207de8
commit 7f7458f7d8
3 changed files with 10 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ build_flask:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker push $IMAGE_TAG
build_api:
build_tester:
stage: build
tags:
- shell
@@ -35,6 +35,7 @@ build_api:
- echo "Build api image"
- export
# https://gitlab.com/gitlab-org/gitlab-runner/-/issues/26785
unit_test:
stage: test
services:
@@ -42,7 +43,9 @@ unit_test:
alias: zeo
- name: $CI_REGISTRY_IMAGE/webui:$CI_COMMIT_REF_SLUG
alias: webui
image: ubuntu:20.04
image:
name: $CI_REGISTRY_IMAGE/webui:$CI_COMMIT_REF_SLUG
entrypoint: ["tester.sh"]
tags:
- docker
- ubuntu
@@ -50,6 +53,5 @@ unit_test:
paths:
- var/
script:
- apt-get install -y wget
- mkdir var
- wget webui:5000 -o var/index.html