From c60159d40d9d637b127d07b03b8132a1f40bb13e Mon Sep 17 00:00:00 2001 From: Giovanni La Mura <giovanni.lamura@inaf.it> Date: Sun, 24 Dec 2023 12:41:30 +0100 Subject: [PATCH] Use np_tmcode docker image in pipeline --- .gitlab-ci.yml | 72 +++++++++++++++++++++++++------------------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f6101d18..3c02238a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ # CI pipeline configuration default: - image: gcc + image: gmulas/np-tmcode # Switch from branch pipelines to merge request pipelines when a merge request is created workflow: @@ -25,15 +25,15 @@ stages: building_stage: stage: build allow_failure: false - #artifacts: - # paths: - # - build/cluster/* - # - build/sphere/* - # - build/trapping/* - # exclude: - # - ".git*" - # - ".git/**/*" - # expire_in: 2 hours + artifacts: + paths: + - build/cluster/* + - build/sphere/* + - build/trapping/* + exclude: + - ".git*" + - ".git/**/*" + expire_in: 2 hours script: # bash commands to be executed - pwd @@ -42,22 +42,22 @@ building_stage: - echo $CI_COMMIT_BRANCH - cd src - echo "Running make (ONLY C++ CODE)" - #- make conly + - make running_stage: stage: run allow_failure: false needs: - job: building_stage - #artifacts: - # paths: - # - build/cluster/* - # - build/sphere/* - # - build/trapping/* - # exclude: - # - ".git*" - # - ".git/**/*" - # expire_in: 2 hours + artifacts: + paths: + - build/cluster/* + - build/sphere/* + - build/trapping/* + exclude: + - ".git*" + - ".git/**/*" + expire_in: 2 hours script: # bash commands to be executed - pwd @@ -66,26 +66,26 @@ running_stage: - echo $CI_COMMIT_BRANCH - cd build/sphere - echo "Running np_sphere" - #- chmod +x np_sphere - #- ./np_sphere + - chmod +x np_sphere + - ./np_sphere - cd ../cluster - echo "Running np_cluster" - #- chmod +x np_cluster - #- ./np_cluster + - chmod +x np_cluster + - ./np_cluster testing_stage: stage: test allow_failure: true needs: - job: running_stage - #artifacts: - # paths: - # - build/cluster/pycompare.html - # - build/sphere/pycompare.html - # exclude: - # - ".git*" - # - ".git/**/*" - # expire_in: 2 hours + artifacts: + paths: + - build/cluster/pycompare.html + - build/sphere/pycompare.html + exclude: + - ".git*" + - ".git/**/*" + expire_in: 2 hours script: # bash commands to be executed - pwd @@ -93,11 +93,11 @@ testing_stage: - echo $CI_COMMIT_SHA - echo $CI_COMMIT_BRANCH - cd build/sphere - #- cp ../../test_data/sphere/OSPH . + - export FFILE=../../test_data/sphere/OSPH - echo "Comparing output of SPHERE" - #- python3 ../../src/scripts/pycompare.py --ffile=OSPH --cfile=c_OSPH --html + - python3 ../../src/scripts/pycompare.py --ffile=$FFILE --cfile=c_OSPH --html - cd ../cluster - echo "Comparing output of CLUSTER" - #- cp ../../test_data/cluster/OCLU . - #- python3 ../../src/scripts/pycompare.py --ffile=OCLU --cfile=c_OCLU --html + - export FFILE=../../test_data/cluster/OCLU + - python3 ../../src/scripts/pycompare.py --ffile=$FFILE --cfile=c_OCLU --html -- GitLab