From d257e6be0e2d68d778ce31ff1165468798c1a1ab Mon Sep 17 00:00:00 2001 From: "guillaum.chanel" <guillaume.chanel@hesge.ch> Date: Thu, 6 Oct 2022 15:37:24 +0200 Subject: [PATCH] Set executable as variable --- .gitlab-ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f7d0855..78c81ec 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,6 +8,9 @@ # can use versions as well, like gcc:5.2 # see https://hub.docker.com/_/gcc/ +variables: + EXEC_NAME: "./mysh" # change this to your executable path as generated by the make file + image: gcc build: @@ -20,7 +23,7 @@ build: - make artifacts: paths: - - mysh # YOU CAN REPLACE THIS LINE BY THE NAME OF YOUR SHELL + - "$EXEC_NAME" # depending on your build setup it's most likely a good idea to cache outputs to reduce the build time cache: paths: @@ -33,4 +36,4 @@ test: - apt update && apt -y install make python3-colorama - apt update && apt -y install make python3-psutil script: - - python3 test/test.py ./ultra-cp + - python3 test/test.py "$EXEC_NAME" -- GitLab