Update .gitlab-ci.yml

This commit is contained in:
2024-05-13 19:56:43 +02:00
parent b696b193b2
commit de7d9dc1cb

View File

@ -39,7 +39,6 @@ include:
#commands to run in the Docker container before starting each job. #commands to run in the Docker container before starting each job.
before_script: before_script:
- echo $my_branch.BEC_CORE_BRANCH
- if [[ "$CI_PROJECT_PATH" != "bec/ophyd_devices" ]]; then - if [[ "$CI_PROJECT_PATH" != "bec/ophyd_devices" ]]; then
echo -e "\033[35;1m Using branch $CHILD_PIPELINE_BRANCH of Ophyd Devices \033[0;m"; echo -e "\033[35;1m Using branch $CHILD_PIPELINE_BRANCH of Ophyd Devices \033[0;m";
test -d ophyd_devices || git clone --branch $CHILD_PIPELINE_BRANCH https://gitlab.psi.ch/bec/ophyd_devices.git; cd ophyd_devices; test -d ophyd_devices || git clone --branch $CHILD_PIPELINE_BRANCH https://gitlab.psi.ch/bec/ophyd_devices.git; cd ophyd_devices;
@ -51,11 +50,22 @@ before_script:
# different stages in the pipeline # different stages in the pipeline
stages: stages:
- pre
- Formatter - Formatter
- test # must be called test for security/secret-detection to work - test # must be called test for security/secret-detection to work
- AdditionalTests - AdditionalTests
- Deploy - Deploy
load_vars:
stage: pre
script:
script:
- echo "Loading variables from vars.yml..."
- cat >> build.env
artifacts:
reports:
dotenv: build.env
formatter: formatter:
stage: Formatter stage: Formatter
before_script: before_script: