1# 2# stage-1 take only a few minutes; they do not run the full test suite or external packages. 3# 4# stage-2 runs on MCS systems and may take 10 to 15 minutes. They run the full test suite but with limited mixture of external packages 5# 6# stage-3 runs on MCS systems and may take an hour or more. They run the full test suite and heavily test external packages, utilize valgrind etc 7# 8# The stage-(n) tests are only started if all of the stage-(n-1) tests run without error 9# You can limit the testing by using the variable STAGE with value 1 or 2 10# 11 12stages: 13 - stage-1 14 - stage-2 15 - stage-3 16variables: 17 GIT_STRATEGY: fetch 18 GIT_CLEAN_FLAGS: -ffdxq 19 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump -checkstack 20 TIMEOUT: 450 21 22# 23# The most basic template that most tests will expand upon 24# 25 26.test-basic: 27 interruptible: true 28 only: 29 refs: 30# Set with CI/CD Shedules - New Schedule 31 - schedules 32 - api 33# Set with CI/CD Pipelines - Run Pipeline 34 - web 35 - merge_requests 36 dependencies: [] 37 38.test: 39 extends: .test-basic 40 except: 41 variables: 42 # Skip if the docs-only label is attached to a merge request 43 - $CI_MERGE_REQUEST_LABELS =~ /(^|,)docs-only($|,)/ 44 - $PETSC_CI_SCHEDULED =~ /yes/ 45 46check-ci-settings: 47 extends: .test-basic 48 stage: .pre 49 tags: 50 - check-ci-settings 51 script: 52 - lib/petsc/bin/maint/check-ci-settings.sh 53# 54# This provides the basic order of operations and options template for cloud based stage 1 tests. 55# Not all test-short need to follow this template but most will. 56# 57 58.stage-1: 59 extends: .test 60 stage: stage-1 61 tags: 62 - stage1 63 before_script: 64 - date 65 - hostname 66 - grep PRETTY_NAME /etc/os-release 67 - nproc 68 - lscpu 69 - ccache --zero-stats 70 - echo ${CONFIG_OPTS} 71 script: 72 - printf "PATH:$PATH\n" 73 - printf "PYTHONPATH:$PYTHONPATH\n" 74 - printf "PETSC_OPTIONS:$PETSC_OPTIONS\n" 75 - if [ ! -z ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME+x} ]; then printf "CI_MERGE_REQUEST_SOURCE_BRANCH_NAME:$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME\n" ;fi 76 - ${PYTHON} ./configure --with-debugging=0 COPTFLAGS='-O3 -march=native' CXXOPTFLAGS='-O3 -march=native' FOPTFLAGS='-O3 -march=native' ${CONFIG_OPTS} 77 - make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" 78 - make CFLAGS="${MAKE_TEST_CFLAGS}" CXXFLAGS="${MAKE_TEST_CXXFLAGS}" FFLAGS="${MAKE_TEST_FFLAGS}" allgtests-tap gmakesearch="${TEST_SEARCH}" TIMEOUT=${TIMEOUT} 79 variables: 80 MAKE_CFLAGS: -Werror 81 MAKE_CXXFLAGS: -Werror -Wzero-as-null-pointer-constant 82 MAKE_FFLAGS: -Werror 83 MAKE_TEST_CFLAGS: -Werror 84 MAKE_TEST_CXXFLAGS: -Werror 85 MAKE_TEST_FFLAGS: -Werror 86 after_script: 87 - date 88 - ccache --show-stats 89 artifacts: 90 reports: 91 junit: arch-*/tests/testresults.xml 92 name: "$CI_JOB_NAME" 93 when: always 94 paths: 95 - arch-*/lib/petsc/conf/*.log 96 - arch-*/lib/pkgconfig/petsc.pc 97 - arch-*/tests/testresults.xml 98 - arch-*/tests/test_*_tap.log 99 - arch-*/tests/test_*_err.log 100 expire_in: 4 days 101 102# 103# The following tests run on the cloud as part of stage-1. 104# 105 106ompi-cuda: 107 extends: .stage-1 108 tags: 109 - stage1, name:p1 110 variables: 111 PYTHON: python3 112 CONFIG_OPTS: --with-mpi-dir=/home/petsc/soft/openmpi-4.0.2-cuda --with-cuda=1 --with-fc=0 113 TEST_SEARCH: snes_tutorials-ex19_cuda% 114 MAKE_CXXFLAGS: -Werror 115 116mpich-cxx-py3: 117 extends: .stage-1 118 tags: 119 - stage1, fedora 120 variables: 121 PYTHON: python3 122 CONFIG_OPTS: --with-mpi-dir=/home/glci/soft/mpich-3.3.2 --with-clanguage=cxx --with-fc=0 123 TEST_SEARCH: snes_tutorials-ex48% 124 125uni-complex-float-int64: 126 extends: .stage-1 127 variables: 128 PYTHON: python3 129 CONFIG_OPTS: --with-mpi=0 --with-scalar-type=complex --with-precision=single --with-64-bit-indices 130 TEST_SEARCH: ts_tutorials-ex11_adv_2d_quad_% 131 132c99-mlib-static-py2: 133 extends: .stage-1 134 variables: 135 PYTHON: python2 136 CONFIG_OPTS: --with-mpi-dir=/home/glci/soft/mpich-3.3.2 --with-single-library=0 --with-shared-libraries=0 CFLAGS=-std=c99 137 TEST_SEARCH: snes_tutorials-ex19% snes_tutorials-ex5f90t% 138 MAKE_TEST_FFLAGS: -Werror -std=f2008 139 140petsc4py-install: 141 extends: .stage-2 142 tags: 143 - linux-stage2 144 variables: 145 PYTHON: python3 146 T_PREFIX: petsc-install 147 T_DESTDIR: petsc-destdir 148 T_PETSC4PY: src/binding/petsc4py 149 T_VALIDATE_CMD: lib/petsc/bin/maint/validate-petsc4py.sh 150 script: 151 - printf "PATH:$PATH\n" 152 - mkdir hide 153 - if [ ! -z ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME+x} ]; then printf "CI_MERGE_REQUEST_SOURCE_BRANCH_NAME:$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME\n" ;fi 154 - ${PYTHON} ./configure --prefix="${PWD}/${T_PREFIX}" --with-petsc4py=1 --with-debugging=0 --with-mpi-dir=/home/glci/soft/mpich-3.3.2 155 - make CFLAGS=-Werror CXXFLAGS="-Werror -Wzero-as-null-pointer-constant" FFLAGS=-Werror 156 - printf "====== Test A. Install into staging directory then into prefix directory (mimics distro package recipe) =====\n" 157 - make install DESTDIR="${PWD}/${T_DESTDIR}" 158 - test "$(find ${PWD}/${T_PREFIX} -mindepth 1 | wc -l)" -eq 0 159 - test "$(find ${PWD}/${T_DESTDIR} -mindepth 1 | wc -l)" -gt 0 160 - (cd "${PWD}/${T_DESTDIR}" && find * -exec install -v -D "{}" "/{}" \; ) 161 - mv arch-* hide/ && PETSC_DIR="${PWD}/${T_PREFIX}" ${T_VALIDATE_CMD} && mv hide/arch-* ./ 162 - rm -r "${PWD}/${T_PREFIX}" "${PWD}/${T_DESTDIR}" && mkdir "${PWD}/${T_PREFIX}" 163 - printf "====== Test B. Install directly into prefix directory =====\n" 164 - make install 165 - test "$(find ${PWD}/${T_PREFIX} -mindepth 1 | wc -l)" -gt 0 166 - mv arch-* hide/ && PETSC_DIR="${PWD}/${T_PREFIX}" ${T_VALIDATE_CMD} && mv hide/arch-* ./ 167 - rm -r "${PWD}/${T_PREFIX}"/*/petsc4py* 168 - printf "====== Test C. Install manually with setuptools =====\n" 169 - export PETSC_DIR="${PWD}/${T_PREFIX}" && (cd "${T_PETSC4PY}" && ${PYTHON} setup.py build) 170 - export PETSC_DIR="${PWD}/${T_PREFIX}" P="${PWD}" && (cd "${T_PETSC4PY}" && ${PYTHON} setup.py install --install-lib="${P}/${T_PREFIX}/lib") 171 - mv arch-* hide/ && PETSC_DIR="${PWD}/${T_PREFIX}" ${T_VALIDATE_CMD} && mv hide/arch-* ./ 172 - rm -r "${PWD}/${T_PREFIX}"/*/petsc4py* 173 - printf "====== Test D. Install manually with setuptools with staging =====\n" 174 - export PETSC_DIR="${PWD}/${T_PREFIX}" P="${PWD}" && (cd "${T_PETSC4PY}" && ${PYTHON} setup.py install --root="${P}/${T_DESTDIR}" --install-lib="${P}/${T_PREFIX}/lib") 175 - (cd "${PWD}/${T_DESTDIR}" && find * -exec install -v -D "{}" "/{}" \; ) 176 - mv arch-* hide/ && PETSC_DIR="${PWD}/${T_PREFIX}" ${T_VALIDATE_CMD} && mv hide/arch-* ./ 177 178checksource: 179 extends: .test-basic 180 stage: .pre 181 tags: 182 - stage1 183 script: 184 - python3 ./configure --with-mpi=0 --with-fc=0 --with-cxx=0 185 - make checkbadSource SHELL=bash 186 - make -f gmakefile check_output SHELL=bash 187 - make check_petsc4py_rst 188 189pause-for-approval: 190 extends: .test 191 stage: .pre 192 tags: 193 - stage1 194 only: 195 refs: 196 - merge_requests 197 variables: 198 - $CI_MERGE_REQUEST_EVENT_TYPE == "merged_result" 199 - $CI_MERGE_REQUEST_EVENT_TYPE == "detached" 200 script: 201 - echo "pause-for-approval has no script to run" 202 variables: 203 GIT_STRATEGY: none 204 when: manual 205 allow_failure: false 206 207check-py-vermin: 208 extends: .test-basic 209 stage: .pre 210 tags: 211 - stage1 212 script: 213 - vermin -vv -t=2.7- -t=3.4- config 214# 215# This provides the basic order of operations and options template for stage-2,3 tests. 216# Not all stage-2,3 need to follow this template, but most will. 217# 218.stage-23: 219 extends: .test 220 script: 221 - printf "PATH:$PATH\n" 222 - printf "PYTHONPATH:$PYTHONPATH\n" 223 - printf "PETSC_OPTIONS:$PETSC_OPTIONS\n" 224 - if [ ! -z ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME+x} ]; then printf "CI_MERGE_REQUEST_SOURCE_BRANCH_NAME:$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME\n" ;fi 225 - printf "./config/examples/${TEST_ARCH}.py\n" 226 - cat ./config/examples/${TEST_ARCH}.py 227 - ./config/examples/${TEST_ARCH}.py 228 - make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" 229 - make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" check 230 - make updatedatafiles 231 - if [ -z ${DISABLE_PETSC4PY_TESTS+x} ]; then if [ -z ${ENABLE_PETSC4PY_LDPRELOAD+x} ]; then echo "NOT using LD_PRELOAD"; make petsc4pytest; else echo "using LD_PRELOAD"; LD_PRELOAD=${PWD}/${TEST_ARCH}/lib/libpetsc.so make petsc4pytest; fi; fi 232 - if [ -z ${DISABLE_TESTS+x} ]; then make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" cleantest allgtests-tap TIMEOUT=${TIMEOUT} ${TEST_OPTS}; fi 233 - if [ ! -z ${RUN_GCOV+x} ]; then make gcov; fi 234 artifacts: 235 reports: 236 junit: ${TEST_ARCH}/tests/testresults.xml 237 name: "$CI_JOB_NAME" 238 when: always 239 paths: 240 - ${TEST_ARCH}/lib/petsc/conf/*.log 241 - ${TEST_ARCH}/lib/pkgconfig/petsc.pc 242 - ${TEST_ARCH}/tests/testresults.xml 243 - ${TEST_ARCH}/tests/test_${TEST_ARCH}_tap.log 244 - ${TEST_ARCH}/tests/test_${TEST_ARCH}_err.log 245 - ${TEST_ARCH}/gcov.tar.gz 246 expire_in: 4 days 247 variables: 248 OPENBLAS_NUM_THREADS: 1 249 250.stage-2: 251 extends: .stage-23 252 stage: stage-2 253 254.stage-3: 255 extends: .stage-23 256 stage: stage-3 257 258# 259# The following provide templates for various OSes for pre/post info 260# 261 262.linux_test_noflags: 263 before_script: 264 - date 265 - hostname 266 - grep PRETTY_NAME /etc/os-release 267 - nproc 268 - lscpu 269 - ccache --zero-stats 270 - if [ ! -z ${LOAD_MODULES+x} ]; then module --trace load ${LOAD_MODULES}; module list; fi 271 - if [ ! -z ${INIT_SCRIPT+x} ]; then echo "sourcing ${INIT_SCRIPT}"; source ${INIT_SCRIPT}; fi 272 after_script: 273 - date 274 - ccache --show-stats 275 276.linux_test_nofflags: 277 extends: .linux_test_noflags 278 variables: 279 MAKE_CFLAGS: -Werror 280 MAKE_CXXFLAGS: -Werror 281 282.linux_test: 283 extends: .linux_test_noflags 284 variables: 285 MAKE_CFLAGS: -Werror 286 MAKE_CXXFLAGS: -Werror 287 MAKE_FFLAGS: -Werror 288 289.freebsd_test: 290 variables: 291 MAKE_CFLAGS: -Werror 292 MAKE_CXXFLAGS: -Werror 293 MAKE_FFLAGS: -Werror 294 before_script: 295 - date 296 - hostname 297 - freebsd-version 298 - echo $(sysctl -n hw.ncpu) 299 - ccache --zero-stats 300 after_script: 301 - date 302 - ccache --show-stats 303 304.osx_test: 305 variables: 306 MAKE_CFLAGS: -Werror 307 MAKE_CXXFLAGS: -Werror 308 MAKE_FFLAGS: -Werror 309 before_script: 310 - date 311 - hostname 312 - sw_vers -productVersion 313 - echo $(sysctl -n hw.ncpu) 314 - ccache --zero-stats 315 after_script: 316 - date 317 - ccache --show-stats 318 319.opensolaris_test: 320 before_script: 321 - date 322 - hostname 323 - uname -a 324 - nproc 325 - isainfo -x 326 after_script: 327 - date 328 329.mswin_test: 330 before_script: 331 - date 332 - hostname 333 - uname -a 334 - nproc 335 after_script: 336 - date 337 338# 339# The following tests run as part of stage-2. 340# 341# The tags variable used in the tests below connects the particular test with the runners 342# listed on the left hand side of https://gitlab.com/petsc/petsc/-/settings/ci_cd. 343# For example the test linux-sycl-double any runner that has the tag 'name:pj01' 344# (in a blue box beneath it) 345# 346 347freebsd-cxx-cmplx-64idx-dbg: 348 extends: 349 - .stage-2 350 - .freebsd_test 351 tags: 352 - os:fbsd 353 variables: 354 TEST_ARCH: arch-ci-freebsd-cxx-cmplx-64idx-dbg 355 356freebsd-c-single-opt: 357 extends: 358 - .stage-2 359 - .freebsd_test 360 tags: 361 - os:fbsd 362 variables: 363 TEST_ARCH: arch-ci-freebsd-c-single-opt 364 365linux-cuda-double: 366 extends: 367 - .stage-3 368 - .linux_test 369 tags: 370 - gpu:nvidia, os:linux, name:p1 371 variables: 372 TEST_ARCH: arch-ci-linux-cuda-double 373 374linux-gcc-quad-64idx-dbg: 375 extends: 376 - .stage-2 377 - .linux_test 378 tags: 379 - linux-stage2 380 variables: 381 TEST_ARCH: arch-ci-linux-gcc-quad-64idx-dbg 382 383linux-gcc-pkgs-opt: 384 extends: 385 - .stage-2 386 - .linux_test 387 tags: 388 - linux-stage2 389 variables: 390 TEST_ARCH: arch-ci-linux-gcc-pkgs-opt 391 392linux-gcc-complex-opt-32bit: 393 extends: 394 - .stage-2 395 - .linux_test 396 tags: 397 - linux-stage2 398 variables: 399 TEST_ARCH: arch-ci-linux-gcc-complex-opt-32bit 400 401#do not run checkstack on MSWIN-UNI 402mswin-uni: 403 extends: 404 - .stage-2 405 - .mswin_test 406 tags: 407 - win-stage2 408 variables: 409 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump 410 TEST_ARCH: arch-ci-mswin-uni 411 412mswin-gnu: 413 extends: 414 - .stage-2 415 - .mswin_test 416 tags: 417 - win-stage2 418 variables: 419 TEST_ARCH: arch-ci-mswin-gnu 420 MAKE_CFLAGS: -Werror 421 MAKE_CXXFLAGS: -Werror 422 MAKE_FFLAGS: -Werror 423 DISABLE_TESTS: 1 424 artifacts: 425 reports: 426 paths: 427 - arch-*/lib/petsc/conf/*.log 428 expire_in: 4 days 429 430# 431# The following tests run as part of stage-3. 432# 433 434freebsd-cxx-cmplx-pkgs-dbg: 435 extends: 436 - .stage-3 437 - .freebsd_test 438 tags: 439 - os:fbsd 440 variables: 441 TEST_ARCH: arch-ci-freebsd-cxx-cmplx-pkgs-dbg 442 443freebsd-cxx-pkgs-opt: 444 extends: 445 - .stage-3 446 - .freebsd_test 447 tags: 448 - os:fbsd 449 variables: 450 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump -saws_port_auto_select -saws_port_auto_select_silent -vecscatter_mpi1 false -options_left false 451 TEST_ARCH: arch-ci-freebsd-cxx-pkgs-opt 452 453freebsd-pkgs-opt: 454 extends: 455 - .stage-3 456 - .freebsd_test 457 tags: 458 - os:fbsd 459 variables: 460 TEST_ARCH: arch-ci-freebsd-pkgs-opt 461 462linux-hip-double: 463 extends: 464 - .stage-3 465 - .linux_test 466 tags: 467 - gpu:amd, os:linux, name:hip-txcorp 468 variables: 469 PATH: /opt/rh/devtoolset-7/root/usr/bin:/opt/rocm/bin:/opt/rocm/llvm/bin:/usr/sbin:/usr/bin:/sbin:/bin 470 TEST_ARCH: arch-ci-linux-hip-double 471 472linux-sycl-double: 473 extends: 474 - .stage-3 475 - .linux_test_nofflags 476 tags: 477 - os:linux, name:pj01 478 variables: 479 TEST_ARCH: arch-ci-linux-sycl-double 480 INIT_SCRIPT: /home/glci/bin/ci-inteloneapi.sh 481 DISABLE_TESTS: 1 482 483linux-c-exodus-dbg: 484 extends: 485 - .stage-3 486 - .linux_test 487 tags: 488 - gpu:nvidia, os:linux, name:frog 489 variables: 490 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump -use_gpu_aware_mpi 0 -checkstack 491 TEST_ARCH: arch-ci-linux-c-exodus-dbg 492 RUN_GCOV: 1 493 TEST_OPTS: -j1 query=requires queryval=cuda 494 495linux-cuda11-double: 496 extends: 497 - .stage-3 498 - .linux_test 499 tags: 500 - gpu:nvidia, os:linux, name:frog 501 variables: 502 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump -use_gpu_aware_mpi 0 -checkstack 503 TEST_ARCH: arch-ci-linux-cuda11-double 504 TEST_OPTS: -j1 query=requires queryval=cuda 505 506linux-cuda11-complex: 507 extends: 508 - .stage-3 509 - .linux_test 510 tags: 511 - gpu:nvidia, os:linux, name:frog 512 variables: 513 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump -use_gpu_aware_mpi 0 -checkstack 514 TEST_ARCH: arch-ci-linux-cuda11-complex 515 TEST_OPTS: -j1 query=requires queryval=cuda 516 517linux-cuda-double-64idx: 518 extends: 519 - .stage-3 520 - .linux_test 521 tags: 522 - gpu:nvidia, os:linux, name:p1 523 variables: 524 TEST_ARCH: arch-ci-linux-cuda-double-64idx 525 TEST_OPTS: -j1 query=requires queryval=cuda 526 527linux-cuda-single-cxx: 528 extends: 529 - .stage-3 530 - .linux_test 531 tags: 532 - gpu:nvidia, os:linux 533 variables: 534 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump -use_gpu_aware_mpi 0 -checkstack 535 TEST_ARCH: arch-ci-linux-cuda-single-cxx 536 TEST_OPTS: -j1 query=requires queryval=cuda 537 538linux-cuda-uni-pkgs: 539 extends: 540 - .stage-3 541 - .linux_test 542 tags: 543 - gpu:nvidia, os:linux 544 variables: 545 TEST_ARCH: arch-ci-linux-cuda-uni-pkgs 546 TEST_OPTS: -j4 query=requires queryval=cuda 547 548linux-viennacl: 549 extends: 550 - .stage-3 551 - .linux_test 552 tags: 553 - gpu:nvidia, os:linux 554 variables: 555 TEST_ARCH: arch-ci-linux-viennacl 556 MAKE_CXXFLAGS: -Werror -Wno-ignored-attributes 557 TEST_OPTS: -j1 query=requires queryval=viennacl 558 559linux-without-fc: 560 extends: 561 - .stage-3 562 - .linux_test 563 tags: 564 - gce-nfs 565 variables: 566 TEST_ARCH: arch-ci-linux-without-fc 567 568linux-cmplx-single: 569 extends: 570 - .stage-3 571 - .linux_test 572 tags: 573 - name:si 574 variables: 575 TEST_ARCH: arch-ci-linux-cmplx-single 576 577linux-gcc-cxx-avx2: 578 extends: 579 - .stage-3 580 - .linux_test 581 tags: 582 - name:isdp001 583 variables: 584 TEST_ARCH: arch-ci-linux-gcc-cxx-avx2 585 586linux-clang-avx: 587 extends: 588 - .stage-3 589 - .linux_test 590 tags: 591 - name:isdp001 592 variables: 593 TEST_ARCH: arch-ci-linux-clang-avx 594 595linux-knl: 596 extends: 597 - .stage-3 598 - .linux_test 599 tags: 600 - name:isdp001 601 variables: 602 TEST_ARCH: arch-ci-linux-knl 603 604linux-intel-mkl-single: 605 extends: 606 - .stage-3 607 - .linux_test_nofflags 608 tags: 609 - name:isdp001 610 variables: 611 TEST_ARCH: arch-ci-linux-intel-mkl-single 612 613linux-cxx-cmplx-pkgs-64idx: 614 extends: 615 - .stage-3 616 - .linux_test 617 tags: 618 - gce-nfs 619 variables: 620 TEST_ARCH: arch-ci-linux-cxx-cmplx-pkgs-64idx 621 LOAD_MODULES: llvm/9.0.0-7fyffox gcc/8.3.0-fjpc5ys cmake/3.14.2-rl3q676 622 623# Set env vars for 'Kokkos + OpenMP' tests, so that they won't give warnings 624linux-pkgs-dbg-ftn-interfaces: 625 extends: 626 - .stage-3 627 - .linux_test 628 tags: 629 - gce-nfs 630 variables: 631 TEST_ARCH: arch-ci-linux-pkgs-dbg-ftn-interfaces 632 LOAD_MODULES: cmake/3.20.5-yjp2hz6 633 OMP_PROC_BIND: "false" 634 OMP_NUM_THREADS: 4 635 636linux-pkgs-cxx-mlib: 637 extends: 638 - .stage-3 639 - .linux_test 640 tags: 641 - gce-nfs 642 variables: 643 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump -saws_port_auto_select -saws_port_auto_select_silent -checkstack 644 TEST_ARCH: arch-ci-linux-pkgs-cxx-mlib 645 LOAD_MODULES: gcc/11.1.0-5ikoznk cmake/3.20.5-yjp2hz6 646 647linux-pkgs-valgrind: 648 extends: 649 - .stage-3 650 - .linux_test 651 tags: 652 - gce-nfs, linux-fast 653 variables: 654 TEST_ARCH: arch-ci-linux-pkgs-valgrind 655 TIMEOUT: 7200 656 LOAD_MODULES: valgrind/3.17.0 657 658linux-pkgs-opt: 659 extends: 660 - .stage-3 661 - .linux_test 662 tags: 663 - gce-nfs, linux-fast 664 variables: 665 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump -saws_port_auto_select -saws_port_auto_select_silent -checkstack 666 TEST_ARCH: arch-ci-linux-pkgs-opt 667 LOAD_MODULES: gcc/10.1.0-5hiqhdh 668 669linux-pkgs-gcov: 670 extends: 671 - .stage-3 672 - .linux_test 673 tags: 674 - gce-nfs, linux-gcov 675 variables: 676 TEST_ARCH: arch-ci-linux-pkgs-gcov 677 RUN_GCOV: 1 678 679linux-cmplx-gcov: 680 extends: 681 - .stage-3 682 - .linux_test 683 tags: 684 - gce-nfs, linux-gcov 685 variables: 686 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump -vecscatter_mpi1 false -options_left false -checkstack 687 TEST_ARCH: arch-ci-linux-cmplx-gcov 688 LOAD_MODULES: gcc/8.3.0-fjpc5ys 689 RUN_GCOV: 1 690 691linux-matlab-ilp64-gcov: 692 extends: 693 - .stage-3 694 - .linux_test 695 tags: 696 - gce-nfs, linux-gcov 697 variables: 698 TEST_ARCH: arch-ci-linux-matlab-ilp64-gcov 699 LOAD_MODULES: matlab/R2018a 700 RUN_GCOV: 1 701 allow_failure: true 702 703linux-gcov: 704 extends: 705 - .stage-3 706 - .linux_test 707 tags: 708 - gce-nfs, linux-gcov 709 variables: 710 TEST_ARCH: arch-ci-linux-gcov 711 RUN_GCOV: 1 712 713linux-pgi: 714 extends: 715 - .stage-3 716 - .linux_test_noflags 717 tags: 718 - gce-nfs, linux-mcpu 719 variables: 720 TEST_ARCH: arch-ci-linux-pgi 721 LOAD_MODULES: hpc_sdk/20.9 722 723linux-nagfor: 724 extends: 725 - .stage-3 726 - .linux_test_nofflags 727 tags: 728 - gce-nfs, linux-mcpu 729 variables: 730 LOAD_MODULES: nag/6.1 731 TEST_ARCH: arch-ci-linux-nagfor 732 733linux-intel-cmplx: 734 extends: 735 - .stage-3 736 - .linux_test_nofflags 737 tags: 738 - gce-nfs 739 variables: 740 TEST_ARCH: arch-ci-linux-intel-cmplx 741 LOAD_MODULES: intel-mkl/19.5 intel/19.0-nompilib cmake/3.20.5-yjp2hz6 742 ENABLE_PETSC4PY_LDPRELOAD: 1 743 744linux-xsdk-dbg: 745 extends: 746 - .stage-3 747 - .linux_test 748 tags: 749 - gce-nfs 750 variables: 751 TEST_ARCH: arch-ci-linux-xsdk-dbg 752 LOAD_MODULES: gcc/8.3.0-fjpc5ys 753 754linux-analyzer: 755 extends: 756 - .stage-2 757 - .linux_test 758 tags: 759 - gce-nfs-short 760 script: 761 - printf "PATH:$PATH\n" 762 - printf "PYTHONPATH:$PYTHONPATH\n" 763 - printf "PETSC_OPTIONS:$PETSC_OPTIONS\n" 764 - if [ ! -z ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME+x} ]; then printf "CI_MERGE_REQUEST_SOURCE_BRANCH_NAME:$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME\n" ;fi 765 - printf "./config/examples/${TEST_ARCH}.py\n" 766 - cat ./config/examples/${TEST_ARCH}.py 767 - ./config/examples/${TEST_ARCH}.py 768 - make LINTER_OPTIONS="${LINTER_OPTIONS}" test-lint 769 - make LINTER_OPTIONS="${LINTER_OPTIONS}" lint 770 variables: 771 TEST_ARCH: arch-ci-linux-analyzer 772 LOAD_MODULES: llvm/11.0.0-snbtima cmake/3.20.0-vov726r 773 LINTER_OPTIONS: "--PETSC_ARCH=${TEST_ARCH} --clang_lib=`llvm-config --libdir`/libclang.so.11 --verbose --werror" 774 artifacts: 775 paths: 776 - ${TEST_ARCH}/lib/petsc/conf/*.log 777 - ./petscLintPatches/*.patch 778 779linux-intel: 780 extends: 781 - .stage-3 782 - .linux_test_nofflags 783 tags: 784 - gce-nfs 785 variables: 786 TEST_ARCH: arch-ci-linux-intel 787 LOAD_MODULES: intel-mkl/19.5 intel/19.0-nompilib 788 789linux-opt-misc: 790 extends: 791 - .stage-3 792 - .linux_test 793 tags: 794 - gce-nfs, linux-fast 795 variables: 796 TEST_ARCH: arch-ci-linux-opt-misc 797 LOAD_MODULES: gcc/6.5.0-57usejd 798 799linux-pkgs-64idx: 800 extends: 801 - .stage-3 802 - .linux_test 803 tags: 804 - gce-nfs, linux-mcpu 805 variables: 806 TEST_ARCH: arch-ci-linux-pkgs-64idx 807 LOAD_MODULES: cmake/3.20.5-yjp2hz6 intel-mkl/19.5 808 809linux-64idx-i8: 810 extends: 811 - .stage-3 812 - .linux_test 813 tags: 814 - gce-nfs 815 variables: 816 TEST_ARCH: arch-ci-linux-64idx-i8 817 818linux-gcc-ifc-cmplx: 819 extends: 820 - .stage-3 821 - .linux_test_nofflags 822 tags: 823 - gce-nfs 824 variables: 825 TEST_ARCH: arch-ci-linux-gcc-ifc-cmplx 826 LOAD_MODULES: intel/19.0-nompilib cmake/3.20.0-vov726r 827 828linux-opt-cxx-quad: 829 extends: 830 - .stage-3 831 - .linux_test 832 tags: 833 - gce-nfs 834 variables: 835 TEST_ARCH: arch-ci-linux-opt-cxx-quad 836 837linux-ILP64: 838 extends: 839 - .stage-3 840 - .linux_test 841 tags: 842 - gce-nfs 843 variables: 844 TEST_ARCH: arch-ci-linux-ILP64 845 LOAD_MODULES: mpich/2-1.5-gcc750 846 847linux-64idx-i8-uni: 848 extends: 849 - .stage-3 850 - .linux_test 851 tags: 852 - gce-nfs 853 variables: 854 TEST_ARCH: arch-ci-linux-64idx-i8-uni 855 856mswin-intel-cxx-cmplx: 857 extends: 858 - .stage-3 859 - .mswin_test 860 tags: 861 - os:win 862 variables: 863 TEST_ARCH: arch-ci-mswin-intel-cxx-cmplx 864 865#mswin-intel: 866# extends: 867# - .stage-3 868# - .mswin_test 869# tags: 870# - os:win 871# variables: 872# TEST_ARCH: arch-ci-mswin-intel 873 874#mswin-opt-impi: 875# extends: 876# - .stage-3 877# - .mswin_test 878# tags: 879# - os:win 880# variables: 881# TEST_ARCH: arch-ci-mswin-opt-impi 882# DISABLE_TESTS: 1 883 884opensolaris-pkgs-opt: 885 extends: 886 - .stage-3 887 - .opensolaris_test 888 tags: 889 - name:n-gage 890 variables: 891 TEST_ARCH: arch-ci-opensolaris-pkgs-opt 892 893opensolaris-cmplx-pkgs-dbg: 894 extends: 895 - .stage-3 896 - .opensolaris_test 897 tags: 898 - name:n-gage 899 variables: 900 TEST_ARCH: arch-ci-opensolaris-cmplx-pkgs-dbg 901 902opensolaris-misc: 903 extends: 904 - .stage-3 905 - .opensolaris_test 906 tags: 907 - name:n-gage 908 variables: 909 TEST_ARCH: arch-ci-opensolaris-misc 910 911osx-cxx-cmplx-pkgs-dbg: 912 extends: 913 - .stage-3 914 - .osx_test 915 tags: 916 - os:macos 917 variables: 918 TEST_ARCH: arch-ci-osx-cxx-cmplx-pkgs-dbg 919 920osx-cxx-pkgs-opt: 921 extends: 922 - .stage-3 923 - .osx_test 924 tags: 925 - os:macos, opt 926 variables: 927 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump -saws_port_auto_select -saws_port_auto_select_silent -vecscatter_mpi1 false -options_left false 928 TEST_ARCH: arch-ci-osx-cxx-pkgs-opt 929 MAKE_CXXFLAGS: -Werror -Wno-pass-failed 930 931osx-dbg: 932 extends: 933 - .stage-3 934 - .osx_test 935 tags: 936 - os:macos 937 variables: 938 TEST_ARCH: arch-ci-osx-dbg 939 940osx-xsdk-opt: 941 extends: 942 - .stage-3 943 - .osx_test 944 tags: 945 - os:macos, opt 946 variables: 947 TEST_ARCH: arch-ci-osx-xsdk-opt 948 949# job for analyzing the final coverage results 950analyze-pipeline: 951 extends: .test 952 stage: .post 953 tags: 954 - gce-nfs-short 955 dependencies: 956 - linux-c-exodus-dbg 957 - linux-pkgs-gcov 958 - linux-cmplx-gcov 959 - linux-matlab-ilp64-gcov 960 - linux-gcov 961 variables: 962 PETSC_ARCH: arch-ci-analyze-pipeline 963 before_script: 964 - date 965 - hostname 966 script: 967 - ./configure --with-mpi=0 --with-cxx=0 --with-c2html 968 - make srchtml 969 - make mergegcov 970 artifacts: 971 name: "$CI_JOB_NAME" 972 when: always 973 paths: 974 - arch-ci-analyze-pipeline/* 975 expire_in: 4 days 976 977 978# 979# Base job for a documentation build 980# 981.docs: 982 stage: stage-2 983 tags: 984 - name:pj02 985 before_script: 986 - VENV=venv-petsc-docs && 987 python3 -m venv $VENV && 988 . $VENV/bin/activate && 989 cd doc && 990 pip install -r requirements.txt 991 allow_failure: true 992 993# 994# Build documentation and make available for review using GitLab pages 995# 996docs-review: 997 extends: 998 - .docs 999 - .test-basic 1000 script: 1001 - make html BUILDDIR="../public" SPHINXOPTS="-T -E" 1002 - make latexpdf && mkdir -p ../public/docs/manual && cp _build/latex/manual.pdf ../public/html/docs/manual/ 1003 environment: 1004 name: review/$CI_COMMIT_REF_NAME 1005 url: https://$CI_PROJECT_NAMESPACE.gitlab.io/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/public/html/index.html 1006 artifacts: 1007 paths: 1008 - public 1009 except: 1010 variables: 1011 - $PETSC_CI_SCHEDULED =~ /yes/ 1012 1013# 1014# Deploy documentation using GitLab pages 1015# 1016pages: # this job name has special meaning to GitLab 1017 extends: .docs 1018 interruptible: true 1019 script: 1020 - mkdir -p ../public/ && cp public/* ../public/ 1021 - git fetch --unshallow --no-tags origin +release:remotes/origin/release +main:remotes/origin/main 1022 - git checkout origin/main && make website-deploy BUILDDIR="../public/main" && make latexpdf && mkdir -p ../public/main/docs/manual && cp _build/latex/manual.pdf ../public/main/docs/manual/ 1023 - make clean BUILDDIR="../public/release" 1024 - git checkout origin/release && make website-deploy BUILDDIR="../public/release" && make latexpdf && mkdir -p ../public/release/docs/manual && cp _build/latex/manual.pdf ../public/release/docs/manual/ 1025 only: 1026 variables: 1027 - $PETSC_CI_SCHEDULED == "yes" 1028 artifacts: 1029 paths: 1030 - public 1031 1032# 1033# 1034# The following tests are experimental; more tests by users at other sites may be added below this. Experimental test 1035# that fail produce a warning, but do not block execution of a pipeline. 1036# 1037 1038.test-experimental: 1039 extends: .test 1040 allow_failure: true 1041 1042