Skip to content
Snippets Groups Projects
Select Git revision
  • parallel_trapping
  • offload_trapping
  • master default protected
  • script_devel
  • unify_iterations
  • containers-m10
  • magma_refinement
  • release9
  • enable_svd
  • parallel_angles_gmu
  • containers-m8
  • parallel_angles
  • profile_omp_leonardo
  • test_nvidia_profiler
  • containers
  • shaditest
  • test1
  • main
  • 3-error-in-run-the-program
  • experiment
  • NP_TMcode-M10a.03
  • NP_TMcode-M10a.02
  • NP_TMcode-M10a.01
  • NP_TMcode-M10a.00
  • NP_TMcode-M9.01
  • NP_TMcode-M9.00
  • NP_TMcode-M8.03
  • NP_TMcode-M8.02
  • NP_TMcode-M8.01
  • NP_TMcode-M8.00
  • NP_TMcode-M7.00
  • v0.0
32 results

.gitlab-ci.yml

Blame
  • .gitlab-ci.yml 4.04 KiB
    # CI pipeline configuration
    
    default:
       image: gmulas/np-tmcode
    
    # Switch from branch pipelines to merge request pipelines when a merge request is created
    workflow:
      rules:
        # Ensures next rules do not block triggered pipelines
        - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
          when: never
        # always run for merge requests
        - if: $CI_PIPELINE_SOURCE == "merge_request_event"
        # never run a branch pipeline if there is an open merge request for that branch
        - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
          when: never
        # the only allowed branch pipeline is that on the default branch
        - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
    
    stages:
       - build
       - run
       - test
    
    building_stage:
       stage: build
       tags: ["np-tmcode"]
       allow_failure: false
       artifacts:
          paths:
             - build/cluster/*
             - build/sphere/*
             - build/testing/*
             - build/trapping/*
             - build/libnptm/*
             - doc/build/*
          exclude:
             - ".git*"
             - ".git/**/*"
          expire_in: 2 hours
       script:
          # bash commands to be executed
          - pwd
          - hostname
          - echo $CI_COMMIT_SHA
          - echo $CI_COMMIT_BRANCH
          - echo "Getting system info ..."
          - cat /etc/os-release
          - cd src
          - echo "Running make with gnu compilers version 11..."
          - make clean && BUILDDIR=$PWD/../build_gnu11 CXX=g++-11 FC=gfortran-11 make -j
          - echo "Running make with gnu compilers version 12..."
          - make clean && BUILDDIR=$PWD/../build_gnu12 CXX=g++-12 FC=gfortran-12 make -j
          - echo "Running make with gnu fortran version 12 and clang version 13..."
          - make clean && BUILDDIR=$PWD/../build_clang13 CXX="clang++-13 -stdlib=libc++" FC=gfortran-12 make -j
          - echo "Running make with gnu fortran version 12 and clang version 14..."
          - make clean && BUILDDIR=$PWD/../build_clang14 CXX="clang++-14 -stdlib=libc++" FC=gfortran-12 make -j
          - echo "Running make with gnu fortran version 12 and clang version 15..."
          - make clean && BUILDDIR=$PWD/../build_clang15 CXX="clang++-15 -stdlib=libc++" FC=gfortran-12 make -j
          - echo "Running make with gnu fortran version 12 and clang version 16..."
          - make clean && BUILDDIR=$PWD/../build_clang16 CXX="clang++-16 -stdlib=libc++" FC=gfortran-12 make -j
          - echo "Finally running make with default compilers..."
          - make clean && make -j
          - make docs -j && make -C ../doc/build/latex -j
    
    running_stage:
       stage: run
       tags: ["np-tmcode"]
       allow_failure: false
       needs: