Loading .gitlab-ci.yml +49 −47 Original line number Original line Diff line number Diff line Loading @@ -25,91 +25,93 @@ stages: building_stage: building_stage: stage: build stage: build allow_failure: false allow_failure: false artifacts: #artifacts: paths: # paths: - build/cluster/* # - build/cluster/* - build/sphere/* # - build/sphere/* - build/trapping/* # - build/trapping/* exclude: # exclude: - ".git*" # - ".git*" - ".git/**/*" # - ".git/**/*" expire_in: 2 hours # expire_in: 2 hours script: script: # bash commands to be executed # bash commands to be executed - pwd - pwd - hostname - hostname - echo $CI_COMMIT_SHA - echo $CI_COMMIT_SHA - echo $CI_COMMIT_BRANCH - echo $CI_COMMIT_BRANCH - echo "Updating system" - echo "Getting system info ..." - apt update - cat /etc/os-release #- echo "Updating system" #- apt update - echo "Installing dependencies" - echo "Installing dependencies" - apt install -y g++ gfortran make #- apt install -y g++ gfortran make - cd src - cd src - echo "Running make" - echo "Running make" - make #- make running_stage: running_stage: stage: run stage: run allow_failure: false allow_failure: false needs: needs: - job: building_stage - job: building_stage artifacts: #artifacts: paths: # paths: - build/cluster/* # - build/cluster/* - build/sphere/* # - build/sphere/* - build/trapping/* # - build/trapping/* exclude: # exclude: - ".git*" # - ".git*" - ".git/**/*" # - ".git/**/*" expire_in: 2 hours # expire_in: 2 hours script: script: # bash commands to be executed # bash commands to be executed - pwd - pwd - hostname - hostname - echo $CI_COMMIT_SHA - echo $CI_COMMIT_SHA - echo $CI_COMMIT_BRANCH - echo $CI_COMMIT_BRANCH - echo "Updating system" #- echo "Updating system" - apt update #- apt update - echo "Installing dependencies" - echo "Installing dependencies" - apt install -y g++ gfortran gdb #- apt install -y g++ gfortran gdb - cd build/sphere #- cd build/sphere - echo "Running np_sphere" #- echo "Running np_sphere" - chmod +x np_sphere #- chmod +x np_sphere - ./np_sphere #- ./np_sphere - cd ../cluster #- cd ../cluster - echo "Running np_cluster" - echo "Running np_cluster" - chmod +x np_cluster #- chmod +x np_cluster - ./np_cluster #- ./np_cluster testing_stage: testing_stage: stage: test stage: test allow_failure: true allow_failure: true needs: needs: - job: running_stage - job: running_stage artifacts: #artifacts: paths: # paths: - build/cluster/pycompare.html # - build/cluster/pycompare.html - build/sphere/pycompare.html # - build/sphere/pycompare.html exclude: # exclude: - ".git*" # - ".git*" - ".git/**/*" # - ".git/**/*" expire_in: 2 hours # expire_in: 2 hours script: script: # bash commands to be executed # bash commands to be executed - pwd - pwd - hostname - hostname - echo $CI_COMMIT_SHA - echo $CI_COMMIT_SHA - echo $CI_COMMIT_BRANCH - echo $CI_COMMIT_BRANCH - echo "Updating system" #- echo "Updating system" - apt update #- apt update - echo "Installing dependencies ..." #- echo "Installing dependencies ..." - apt install -y python3 #- apt install -y python3 - cd build/sphere #- cd build/sphere - export FFILE=../../test_data/sphere/OSPH - export FFILE=../../test_data/sphere/OSPH - echo "Comparing output of SPHERE" - echo "Comparing output of SPHERE" - python3 ../../src/scripts/pycompare.py --ffile=$FFILE --cfile=c_OSPH --html #- python3 ../../src/scripts/pycompare.py --ffile=$FFILE --cfile=c_OSPH --html - cd ../cluster - cd ../cluster - echo "Comparing output of CLUSTER" - echo "Comparing output of CLUSTER" - export FFILE=../../test_data/cluster/OCLU - export FFILE=../../test_data/cluster/OCLU - python3 ../../src/scripts/pycompare.py --ffile=$FFILE --cfile=c_OCLU --html #- python3 ../../src/scripts/pycompare.py --ffile=$FFILE --cfile=c_OCLU --html Loading
.gitlab-ci.yml +49 −47 Original line number Original line Diff line number Diff line Loading @@ -25,91 +25,93 @@ stages: building_stage: building_stage: stage: build stage: build allow_failure: false allow_failure: false artifacts: #artifacts: paths: # paths: - build/cluster/* # - build/cluster/* - build/sphere/* # - build/sphere/* - build/trapping/* # - build/trapping/* exclude: # exclude: - ".git*" # - ".git*" - ".git/**/*" # - ".git/**/*" expire_in: 2 hours # expire_in: 2 hours script: script: # bash commands to be executed # bash commands to be executed - pwd - pwd - hostname - hostname - echo $CI_COMMIT_SHA - echo $CI_COMMIT_SHA - echo $CI_COMMIT_BRANCH - echo $CI_COMMIT_BRANCH - echo "Updating system" - echo "Getting system info ..." - apt update - cat /etc/os-release #- echo "Updating system" #- apt update - echo "Installing dependencies" - echo "Installing dependencies" - apt install -y g++ gfortran make #- apt install -y g++ gfortran make - cd src - cd src - echo "Running make" - echo "Running make" - make #- make running_stage: running_stage: stage: run stage: run allow_failure: false allow_failure: false needs: needs: - job: building_stage - job: building_stage artifacts: #artifacts: paths: # paths: - build/cluster/* # - build/cluster/* - build/sphere/* # - build/sphere/* - build/trapping/* # - build/trapping/* exclude: # exclude: - ".git*" # - ".git*" - ".git/**/*" # - ".git/**/*" expire_in: 2 hours # expire_in: 2 hours script: script: # bash commands to be executed # bash commands to be executed - pwd - pwd - hostname - hostname - echo $CI_COMMIT_SHA - echo $CI_COMMIT_SHA - echo $CI_COMMIT_BRANCH - echo $CI_COMMIT_BRANCH - echo "Updating system" #- echo "Updating system" - apt update #- apt update - echo "Installing dependencies" - echo "Installing dependencies" - apt install -y g++ gfortran gdb #- apt install -y g++ gfortran gdb - cd build/sphere #- cd build/sphere - echo "Running np_sphere" #- echo "Running np_sphere" - chmod +x np_sphere #- chmod +x np_sphere - ./np_sphere #- ./np_sphere - cd ../cluster #- cd ../cluster - echo "Running np_cluster" - echo "Running np_cluster" - chmod +x np_cluster #- chmod +x np_cluster - ./np_cluster #- ./np_cluster testing_stage: testing_stage: stage: test stage: test allow_failure: true allow_failure: true needs: needs: - job: running_stage - job: running_stage artifacts: #artifacts: paths: # paths: - build/cluster/pycompare.html # - build/cluster/pycompare.html - build/sphere/pycompare.html # - build/sphere/pycompare.html exclude: # exclude: - ".git*" # - ".git*" - ".git/**/*" # - ".git/**/*" expire_in: 2 hours # expire_in: 2 hours script: script: # bash commands to be executed # bash commands to be executed - pwd - pwd - hostname - hostname - echo $CI_COMMIT_SHA - echo $CI_COMMIT_SHA - echo $CI_COMMIT_BRANCH - echo $CI_COMMIT_BRANCH - echo "Updating system" #- echo "Updating system" - apt update #- apt update - echo "Installing dependencies ..." #- echo "Installing dependencies ..." - apt install -y python3 #- apt install -y python3 - cd build/sphere #- cd build/sphere - export FFILE=../../test_data/sphere/OSPH - export FFILE=../../test_data/sphere/OSPH - echo "Comparing output of SPHERE" - echo "Comparing output of SPHERE" - python3 ../../src/scripts/pycompare.py --ffile=$FFILE --cfile=c_OSPH --html #- python3 ../../src/scripts/pycompare.py --ffile=$FFILE --cfile=c_OSPH --html - cd ../cluster - cd ../cluster - echo "Comparing output of CLUSTER" - echo "Comparing output of CLUSTER" - export FFILE=../../test_data/cluster/OCLU - export FFILE=../../test_data/cluster/OCLU - python3 ../../src/scripts/pycompare.py --ffile=$FFILE --cfile=c_OCLU --html #- python3 ../../src/scripts/pycompare.py --ffile=$FFILE --cfile=c_OCLU --html