|
| 1 | + |
| 2 | +include: |
| 3 | + - local: '/share/ci/compiler_clang.yml' |
| 4 | + - local: '/share/ci/compiler_gcc.yml' |
| 5 | + - local: '/share/ci/compiler_nvcc_cuda.yml' |
| 6 | + - local: '/share/ci/compiler_clang_cuda.yml' |
| 7 | + |
| 8 | +stages: |
| 9 | + - rebase |
| 10 | + - generate |
| 11 | + - compile |
| 12 | + - status |
| 13 | + |
| 14 | +# hidden base job to generate the test matrix |
| 15 | +# required variables (space separated lists): |
| 16 | +# PIC_INPUTS - path to examples relative to share/picongpu |
| 17 | +# e.g. |
| 18 | +# "examples" starts one gitlab job per director in `examples/*` |
| 19 | +# "examples/" compile all directories in `examples/*` within one gitlab job |
| 20 | +# "examples/KelvinHelmholtz" compile all cases within one gitlab job |
| 21 | +# GITLAB_BASES - name of the hidden gitlab base job desctption `/share/ci/compiler_*` |
| 22 | +# CXX_VERSIONS - name of the compiler to use see `/share/ci/compiler_*` `e.g. "g++-8 g++-6" |
| 23 | +# BOOST_VERSIONS - boost version to check e.g. "1.70.0" |
| 24 | +# supported version: {1.65.1, 1.66.0, 1.67.0, 1.68.0, 1.69.0, 1.70.0, 1.71.0, 1.72.0, 1.73.0} |
| 25 | +# PIC_ACCS - PIConGPU backend names see `pic-build --help` |
| 26 | +# e.g. "cuda cuda:35 serial" |
| 27 | +.base_generator: |
| 28 | + stage: generate |
| 29 | + script: |
| 30 | + - $CI_PROJECT_DIR/share/ci/generate.sh > compile.yml |
| 31 | + - cat compile.yml |
| 32 | + artifacts: |
| 33 | + paths: |
| 34 | + - compile.yml |
| 35 | + |
| 36 | +.base_nightly: |
| 37 | + rules: |
| 38 | + - if: '$CI_PIPELINE_SOURCE == "schedule" && $CI_COMPLEXITY == "nightly"' |
| 39 | + |
| 40 | +test-rebase-to-mainline: |
| 41 | + stage: rebase |
| 42 | + script: |
| 43 | + - $CI_PROJECT_DIR/share/ci/git_rebase.sh |
| 44 | + |
| 45 | +# gcc matrix |
| 46 | +# test simples setup to cover compatibility issues with boost |
| 47 | +matrix-gcc-simple: |
| 48 | + variables: |
| 49 | + PIC_INPUTS: "examples/Empty" |
| 50 | + GITLAB_BASES: ".base_gcc" |
| 51 | + CXX_VERSIONS: "g++-9" |
| 52 | + BOOST_VERSIONS: "1.65.1" |
| 53 | + PIC_ACCS: "omp2b" |
| 54 | + extends: ".base_generator" |
| 55 | + |
| 56 | +compile-matrix-gcc-simple: |
| 57 | + stage: compile |
| 58 | + trigger: |
| 59 | + include: |
| 60 | + - artifact: compile.yml |
| 61 | + job: matrix-gcc-simple |
| 62 | + strategy: depend |
| 63 | + |
| 64 | +# clang matrix |
| 65 | +# test simples setup to cover compatibility issues with boost |
| 66 | +matrix-clang-simple: |
| 67 | + variables: |
| 68 | + PIC_INPUTS: "examples/Empty" |
| 69 | + GITLAB_BASES: ".base_clang" |
| 70 | + CXX_VERSIONS: "clang++-5.0" |
| 71 | + BOOST_VERSIONS: "1.65.1" |
| 72 | + PIC_ACCS: "omp2b" |
| 73 | + extends: ".base_generator" |
| 74 | + |
| 75 | +compile-matrix-clang-simple: |
| 76 | + stage: compile |
| 77 | + trigger: |
| 78 | + include: |
| 79 | + - artifact: compile.yml |
| 80 | + job: matrix-clang-simple |
| 81 | + strategy: depend |
| 82 | + |
| 83 | + |
| 84 | +status-check: |
| 85 | + stage: status |
| 86 | + script: |
| 87 | + - echo "Wait for previous stages" |
| 88 | + dependencies: |
| 89 | + - compile-matrix-clang-simple |
| 90 | + - compile-matrix-gcc-simple |
| 91 | + |
| 92 | +# nightly build |
| 93 | +matrix-gcc-simple-nightly: |
| 94 | + variables: |
| 95 | + PIC_INPUTS: "examples/Empty" |
| 96 | + GITLAB_BASES: ".base_gcc" |
| 97 | + CXX_VERSIONS: "g++-9" |
| 98 | + BOOST_VERSIONS: "1.65.1" |
| 99 | + PIC_ACCS: "omp2b" |
| 100 | + extends: |
| 101 | + - .base_generator |
| 102 | + - .base_nightly |
| 103 | + |
| 104 | +compile-matrix-gcc-simple-nightly: |
| 105 | + stage: compile |
| 106 | + trigger: |
| 107 | + include: |
| 108 | + - artifact: compile.yml |
| 109 | + job: matrix-gcc-simple-nightly |
| 110 | + strategy: depend |
| 111 | + extends: |
| 112 | + - .base_nightly |
0 commit comments