From 124232979326ead0e7bfde111d98e4517b5e919e Mon Sep 17 00:00:00 2001 From: M9713 <m9713@student.jamk.fi> Date: Mon, 28 Feb 2022 21:24:08 +0200 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4e28cf0..c05405f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,20 +1,33 @@ stages: - - build robot + # - build robot + - test - build robot: - stage: build robot + test: + stage: test + image: gitlab.labranet.jamk.fi:4567/conduitmiau/kubetest + script: + - export ROBOT_TESTS=PATH_TO_TESTS_DIRECTORY/ + - export OUTPUT_DIR=DIRECTORY_TO_SAVE_OUTPUT_TO + - run.sh + artifacts: + paths: + - DIRECTORY_TO_SAVE_OUTPUT_TO/ - image: - name: gcr.io/kaniko-project/executor:debug - entrypoint: [""] - script: +# build robot: +# stage: build robot - #Build robot +# image: +# name: gcr.io/kaniko-project/executor:debug +# entrypoint: [""] + +# script: + +# #Build robot - - echo "Building robot" - - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - - /kaniko/executor --context $CI_PROJECT_DIR/robot-framework --dockerfile $CI_PROJECT_DIR/robot-framework/Dockerfile --destination $CI_REGISTRY_IMAGE:robot +# - echo "Building robot" +# - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json +# - /kaniko/executor --context $CI_PROJECT_DIR/robot-framework --dockerfile $CI_PROJECT_DIR/robot-framework/Dockerfile --destination $CI_REGISTRY_IMAGE:robot -- GitLab