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 - vermin --version 186 - make vermin 187 - make checkbadSource SHELL=bash 188 - make -f gmakefile check_output SHELL=bash 189 - make check_petsc4py_rst 190 191pause-for-approval: 192 extends: .test 193 stage: .pre 194 tags: 195 - stage1 196 only: 197 refs: 198 - merge_requests 199 variables: 200 - $CI_MERGE_REQUEST_EVENT_TYPE == "merged_result" 201 - $CI_MERGE_REQUEST_EVENT_TYPE == "detached" 202 script: 203 - echo "pause-for-approval has no script to run" 204 variables: 205 GIT_STRATEGY: none 206 when: manual 207 allow_failure: false 208 209# 210# This provides the basic order of operations and options template for stage-2,3 tests. 211# Not all stage-2,3 need to follow this template, but most will. 212# 213.stage-23: 214 extends: .test 215 script: 216 - printf "PATH:$PATH\n" 217 - printf "PYTHONPATH:$PYTHONPATH\n" 218 - printf "PETSC_OPTIONS:$PETSC_OPTIONS\n" 219 - 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 220 - printf "./config/examples/${TEST_ARCH}.py\n" 221 - cat ./config/examples/${TEST_ARCH}.py 222 - ./config/examples/${TEST_ARCH}.py 223 - make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" 224 - make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" check 225 - make updatedatafiles 226 - 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 227 - if [ -z ${DISABLE_TESTS+x} ]; then make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" cleantest allgtests-tap TIMEOUT=${TIMEOUT} ${TEST_OPTS}; fi 228 - if [ ! -z ${RUN_GCOV+x} ]; then make gcov; fi 229 artifacts: 230 reports: 231 junit: ${TEST_ARCH}/tests/testresults.xml 232 name: "$CI_JOB_NAME" 233 when: always 234 paths: 235 - ${TEST_ARCH}/lib/petsc/conf/*.log 236 - ${TEST_ARCH}/lib/pkgconfig/petsc.pc 237 - ${TEST_ARCH}/tests/testresults.xml 238 - ${TEST_ARCH}/tests/test_${TEST_ARCH}_tap.log 239 - ${TEST_ARCH}/tests/test_${TEST_ARCH}_err.log 240 - ${TEST_ARCH}/gcov.tar.gz 241 expire_in: 4 days 242 variables: 243 OPENBLAS_NUM_THREADS: 1 244 245.stage-2: 246 extends: .stage-23 247 stage: stage-2 248 249.stage-3: 250 extends: .stage-23 251 stage: stage-3 252 253# 254# The following provide templates for various OSes for pre/post info 255# 256 257.linux_test_noflags: 258 before_script: 259 - date 260 - hostname 261 - grep PRETTY_NAME /etc/os-release 262 - nproc 263 - lscpu 264 - ccache --zero-stats 265 - if [ ! -z ${LOAD_MODULES+x} ]; then module --trace load ${LOAD_MODULES}; module list; fi 266 - if [ ! -z ${INIT_SCRIPT+x} ]; then echo "sourcing ${INIT_SCRIPT}"; source ${INIT_SCRIPT}; fi 267 after_script: 268 - date 269 - ccache --show-stats 270 271.linux_test_nofflags: 272 extends: .linux_test_noflags 273 variables: 274 MAKE_CFLAGS: -Werror 275 MAKE_CXXFLAGS: -Werror 276 277.linux_test: 278 extends: .linux_test_noflags 279 variables: 280 MAKE_CFLAGS: -Werror 281 MAKE_CXXFLAGS: -Werror 282 MAKE_FFLAGS: -Werror 283 284.freebsd_test: 285 variables: 286 MAKE_CFLAGS: -Werror 287 MAKE_CXXFLAGS: -Werror 288 MAKE_FFLAGS: -Werror 289 before_script: 290 - date 291 - hostname 292 - freebsd-version 293 - echo $(sysctl -n hw.ncpu) 294 - ccache --zero-stats 295 after_script: 296 - date 297 - ccache --show-stats 298 299.osx_test: 300 variables: 301 MAKE_CFLAGS: -Werror 302 MAKE_CXXFLAGS: -Werror 303 MAKE_FFLAGS: -Werror 304 before_script: 305 - date 306 - hostname 307 - sw_vers -productVersion 308 - echo $(sysctl -n hw.ncpu) 309 - ccache --zero-stats 310 after_script: 311 - date 312 - ccache --show-stats 313 314.opensolaris_test: 315 before_script: 316 - date 317 - hostname 318 - uname -a 319 - nproc 320 - isainfo -x 321 after_script: 322 - date 323 324.mswin_test: 325 before_script: 326 - date 327 - hostname 328 - uname -a 329 - nproc 330 after_script: 331 - date 332 333# 334# The following tests run as part of stage-2. 335# 336# The tags variable used in the tests below connects the particular test with the runners 337# listed on the left hand side of https://gitlab.com/petsc/petsc/-/settings/ci_cd. 338# For example the test linux-sycl-double any runner that has the tag 'name:pj01' 339# (in a blue box beneath it) 340# 341 342freebsd-cxx-cmplx-64idx-dbg: 343 extends: 344 - .stage-2 345 - .freebsd_test 346 tags: 347 - os:fbsd 348 variables: 349 TEST_ARCH: arch-ci-freebsd-cxx-cmplx-64idx-dbg 350 351freebsd-c-single-opt: 352 extends: 353 - .stage-2 354 - .freebsd_test 355 tags: 356 - os:fbsd 357 variables: 358 TEST_ARCH: arch-ci-freebsd-c-single-opt 359 360linux-cuda-double: 361 extends: 362 - .stage-3 363 - .linux_test 364 tags: 365 - gpu:nvidia, os:linux, name:p1 366 variables: 367 TEST_ARCH: arch-ci-linux-cuda-double 368 369linux-gcc-quad-64idx-dbg: 370 extends: 371 - .stage-2 372 - .linux_test 373 tags: 374 - linux-stage2 375 variables: 376 TEST_ARCH: arch-ci-linux-gcc-quad-64idx-dbg 377 378linux-gcc-pkgs-opt: 379 extends: 380 - .stage-2 381 - .linux_test 382 tags: 383 - linux-stage2 384 variables: 385 TEST_ARCH: arch-ci-linux-gcc-pkgs-opt 386 387linux-gcc-complex-opt-32bit: 388 extends: 389 - .stage-2 390 - .linux_test 391 tags: 392 - linux-stage2 393 variables: 394 TEST_ARCH: arch-ci-linux-gcc-complex-opt-32bit 395 396#do not run checkstack on MSWIN-UNI 397mswin-uni: 398 extends: 399 - .stage-2 400 - .mswin_test 401 tags: 402 - win-stage2 403 variables: 404 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump 405 TEST_ARCH: arch-ci-mswin-uni 406 407mswin-gnu: 408 extends: 409 - .stage-2 410 - .mswin_test 411 tags: 412 - win-stage2 413 variables: 414 TEST_ARCH: arch-ci-mswin-gnu 415 MAKE_CFLAGS: -Werror 416 MAKE_CXXFLAGS: -Werror 417 MAKE_FFLAGS: -Werror 418 DISABLE_TESTS: 1 419 artifacts: 420 reports: 421 paths: 422 - arch-*/lib/petsc/conf/*.log 423 expire_in: 4 days 424 425# 426# The following tests run as part of stage-3. 427# 428 429freebsd-cxx-cmplx-pkgs-dbg: 430 extends: 431 - .stage-3 432 - .freebsd_test 433 tags: 434 - os:fbsd 435 variables: 436 TEST_ARCH: arch-ci-freebsd-cxx-cmplx-pkgs-dbg 437 438freebsd-cxx-pkgs-opt: 439 extends: 440 - .stage-3 441 - .freebsd_test 442 tags: 443 - os:fbsd 444 variables: 445 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 446 TEST_ARCH: arch-ci-freebsd-cxx-pkgs-opt 447 448freebsd-pkgs-opt: 449 extends: 450 - .stage-3 451 - .freebsd_test 452 tags: 453 - os:fbsd 454 variables: 455 TEST_ARCH: arch-ci-freebsd-pkgs-opt 456 457linux-hip-double: 458 extends: 459 - .stage-3 460 - .linux_test 461 tags: 462 - gpu:amd, os:linux, name:hip-txcorp 463 variables: 464 PATH: /opt/rh/devtoolset-7/root/usr/bin:/opt/rocm/bin:/opt/rocm/llvm/bin:/usr/sbin:/usr/bin:/sbin:/bin 465 TEST_ARCH: arch-ci-linux-hip-double 466 467linux-sycl-double: 468 extends: 469 - .stage-3 470 - .linux_test_nofflags 471 tags: 472 - os:linux, name:pj01 473 variables: 474 TEST_ARCH: arch-ci-linux-sycl-double 475 INIT_SCRIPT: /home/glci/bin/ci-inteloneapi.sh 476 DISABLE_TESTS: 1 477 478linux-c-exodus-dbg: 479 extends: 480 - .stage-3 481 - .linux_test 482 tags: 483 - gpu:nvidia, os:linux, name:frog 484 variables: 485 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump -use_gpu_aware_mpi 0 -checkstack 486 TEST_ARCH: arch-ci-linux-c-exodus-dbg 487 RUN_GCOV: 1 488 TEST_OPTS: -j1 query=requires queryval=cuda 489 490linux-cuda11-double: 491 extends: 492 - .stage-3 493 - .linux_test 494 tags: 495 - gpu:nvidia, os:linux, name:frog 496 variables: 497 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump -use_gpu_aware_mpi 0 -checkstack 498 TEST_ARCH: arch-ci-linux-cuda11-double 499 TEST_OPTS: -j1 query=requires queryval=cuda 500 501linux-cuda11-complex: 502 extends: 503 - .stage-3 504 - .linux_test 505 tags: 506 - gpu:nvidia, os:linux, name:frog 507 variables: 508 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump -use_gpu_aware_mpi 0 -checkstack 509 TEST_ARCH: arch-ci-linux-cuda11-complex 510 TEST_OPTS: -j1 query=requires queryval=cuda 511 512linux-cuda-double-64idx: 513 extends: 514 - .stage-3 515 - .linux_test 516 tags: 517 - gpu:nvidia, os:linux, name:p1 518 variables: 519 TEST_ARCH: arch-ci-linux-cuda-double-64idx 520 TEST_OPTS: -j1 query=requires queryval=cuda 521 522linux-cuda-single-cxx: 523 extends: 524 - .stage-3 525 - .linux_test 526 tags: 527 - gpu:nvidia, os:linux 528 variables: 529 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump -use_gpu_aware_mpi 0 -checkstack 530 TEST_ARCH: arch-ci-linux-cuda-single-cxx 531 TEST_OPTS: -j1 query=requires queryval=cuda 532 533linux-cuda-uni-pkgs: 534 extends: 535 - .stage-3 536 - .linux_test 537 tags: 538 - gpu:nvidia, os:linux 539 variables: 540 TEST_ARCH: arch-ci-linux-cuda-uni-pkgs 541 TEST_OPTS: -j4 query=requires queryval=cuda 542 543linux-viennacl: 544 extends: 545 - .stage-3 546 - .linux_test 547 tags: 548 - gpu:nvidia, os:linux 549 variables: 550 TEST_ARCH: arch-ci-linux-viennacl 551 MAKE_CXXFLAGS: -Werror -Wno-ignored-attributes 552 TEST_OPTS: -j1 query=requires queryval=viennacl 553 554linux-without-fc: 555 extends: 556 - .stage-3 557 - .linux_test 558 tags: 559 - gce-nfs 560 variables: 561 TEST_ARCH: arch-ci-linux-without-fc 562 563linux-cmplx-single: 564 extends: 565 - .stage-3 566 - .linux_test 567 tags: 568 - name:si 569 variables: 570 TEST_ARCH: arch-ci-linux-cmplx-single 571 572linux-gcc-cxx-avx2: 573 extends: 574 - .stage-3 575 - .linux_test 576 tags: 577 - name:isdp001 578 variables: 579 TEST_ARCH: arch-ci-linux-gcc-cxx-avx2 580 581linux-clang-avx: 582 extends: 583 - .stage-3 584 - .linux_test 585 tags: 586 - name:isdp001 587 variables: 588 TEST_ARCH: arch-ci-linux-clang-avx 589 590linux-knl: 591 extends: 592 - .stage-3 593 - .linux_test 594 tags: 595 - name:isdp001 596 variables: 597 TEST_ARCH: arch-ci-linux-knl 598 599linux-intel-mkl-single: 600 extends: 601 - .stage-3 602 - .linux_test_nofflags 603 tags: 604 - name:isdp001 605 variables: 606 TEST_ARCH: arch-ci-linux-intel-mkl-single 607 608linux-cxx-cmplx-pkgs-64idx: 609 extends: 610 - .stage-3 611 - .linux_test 612 tags: 613 - gce-nfs 614 variables: 615 TEST_ARCH: arch-ci-linux-cxx-cmplx-pkgs-64idx 616 LOAD_MODULES: llvm/9.0.0-7fyffox gcc/8.3.0-fjpc5ys cmake/3.14.2-rl3q676 617 618# Set env vars for 'Kokkos + OpenMP' tests, so that they won't give warnings 619linux-pkgs-dbg-ftn-interfaces: 620 extends: 621 - .stage-3 622 - .linux_test 623 tags: 624 - gce-nfs 625 variables: 626 TEST_ARCH: arch-ci-linux-pkgs-dbg-ftn-interfaces 627 LOAD_MODULES: cmake/3.20.5-yjp2hz6 628 OMP_PROC_BIND: "false" 629 OMP_NUM_THREADS: 4 630 631linux-pkgs-cxx-mlib: 632 extends: 633 - .stage-3 634 - .linux_test 635 tags: 636 - gce-nfs 637 variables: 638 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump -saws_port_auto_select -saws_port_auto_select_silent -checkstack 639 TEST_ARCH: arch-ci-linux-pkgs-cxx-mlib 640 LOAD_MODULES: gcc/11.1.0-5ikoznk cmake/3.20.5-yjp2hz6 641 642linux-pkgs-valgrind: 643 extends: 644 - .stage-3 645 - .linux_test 646 tags: 647 - gce-nfs, linux-fast 648 variables: 649 TEST_ARCH: arch-ci-linux-pkgs-valgrind 650 TIMEOUT: 7200 651 LOAD_MODULES: valgrind/3.17.0 652 653linux-pkgs-opt: 654 extends: 655 - .stage-3 656 - .linux_test 657 tags: 658 - gce-nfs, linux-fast 659 variables: 660 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump -saws_port_auto_select -saws_port_auto_select_silent -checkstack 661 TEST_ARCH: arch-ci-linux-pkgs-opt 662 LOAD_MODULES: gcc/10.1.0-5hiqhdh 663 664linux-pkgs-gcov: 665 extends: 666 - .stage-3 667 - .linux_test 668 tags: 669 - gce-nfs, linux-gcov 670 variables: 671 TEST_ARCH: arch-ci-linux-pkgs-gcov 672 RUN_GCOV: 1 673 674linux-cmplx-gcov: 675 extends: 676 - .stage-3 677 - .linux_test 678 tags: 679 - gce-nfs, linux-gcov 680 variables: 681 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump -vecscatter_mpi1 false -options_left false -checkstack 682 TEST_ARCH: arch-ci-linux-cmplx-gcov 683 LOAD_MODULES: gcc/8.3.0-fjpc5ys 684 RUN_GCOV: 1 685 686linux-matlab-ilp64-gcov: 687 extends: 688 - .stage-3 689 - .linux_test 690 tags: 691 - gce-nfs, linux-gcov 692 variables: 693 TEST_ARCH: arch-ci-linux-matlab-ilp64-gcov 694 LOAD_MODULES: matlab/R2018a 695 RUN_GCOV: 1 696 allow_failure: true 697 698linux-gcov: 699 extends: 700 - .stage-3 701 - .linux_test 702 tags: 703 - gce-nfs, linux-gcov 704 variables: 705 TEST_ARCH: arch-ci-linux-gcov 706 RUN_GCOV: 1 707 708linux-pgi: 709 extends: 710 - .stage-3 711 - .linux_test_noflags 712 tags: 713 - gce-nfs, linux-mcpu 714 variables: 715 TEST_ARCH: arch-ci-linux-pgi 716 LOAD_MODULES: hpc_sdk/20.9 717 718linux-nagfor: 719 extends: 720 - .stage-3 721 - .linux_test_nofflags 722 tags: 723 - gce-nfs, linux-mcpu 724 variables: 725 LOAD_MODULES: nag/6.1 726 TEST_ARCH: arch-ci-linux-nagfor 727 728linux-intel-cmplx: 729 extends: 730 - .stage-3 731 - .linux_test_nofflags 732 tags: 733 - gce-nfs 734 variables: 735 TEST_ARCH: arch-ci-linux-intel-cmplx 736 LOAD_MODULES: intel-mkl/19.5 intel/19.0-nompilib cmake/3.20.5-yjp2hz6 737 ENABLE_PETSC4PY_LDPRELOAD: 1 738 739linux-xsdk-dbg: 740 extends: 741 - .stage-3 742 - .linux_test 743 tags: 744 - gce-nfs 745 variables: 746 TEST_ARCH: arch-ci-linux-xsdk-dbg 747 LOAD_MODULES: gcc/8.3.0-fjpc5ys 748 749linux-analyzer: 750 extends: 751 - .stage-2 752 - .linux_test 753 tags: 754 - gce-nfs-short 755 script: 756 - printf "PATH:$PATH\n" 757 - printf "PYTHONPATH:$PYTHONPATH\n" 758 - printf "PETSC_OPTIONS:$PETSC_OPTIONS\n" 759 - 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 760 - printf "./config/examples/${TEST_ARCH}.py\n" 761 - cat ./config/examples/${TEST_ARCH}.py 762 - ./config/examples/${TEST_ARCH}.py 763 - make LINTER_OPTIONS="${LINTER_OPTIONS}" test-lint 764 - make LINTER_OPTIONS="${LINTER_OPTIONS}" lint 765 variables: 766 TEST_ARCH: arch-ci-linux-analyzer 767 LOAD_MODULES: llvm/11.0.0-snbtima cmake/3.20.0-vov726r 768 LINTER_OPTIONS: "--PETSC_ARCH=${TEST_ARCH} --clang_lib=`llvm-config --libdir`/libclang.so.11 --verbose --werror" 769 artifacts: 770 paths: 771 - ${TEST_ARCH}/lib/petsc/conf/*.log 772 - ./petscLintPatches/*.patch 773 774linux-intel: 775 extends: 776 - .stage-3 777 - .linux_test_nofflags 778 tags: 779 - gce-nfs 780 variables: 781 TEST_ARCH: arch-ci-linux-intel 782 LOAD_MODULES: intel-mkl/19.5 intel/19.0-nompilib 783 784linux-opt-misc: 785 extends: 786 - .stage-3 787 - .linux_test 788 tags: 789 - gce-nfs, linux-fast 790 variables: 791 TEST_ARCH: arch-ci-linux-opt-misc 792 LOAD_MODULES: gcc/6.5.0-57usejd 793 794linux-pkgs-64idx: 795 extends: 796 - .stage-3 797 - .linux_test 798 tags: 799 - gce-nfs, linux-mcpu 800 variables: 801 TEST_ARCH: arch-ci-linux-pkgs-64idx 802 LOAD_MODULES: cmake/3.20.5-yjp2hz6 intel-mkl/19.5 803 804linux-64idx-i8: 805 extends: 806 - .stage-3 807 - .linux_test 808 tags: 809 - gce-nfs 810 variables: 811 TEST_ARCH: arch-ci-linux-64idx-i8 812 813linux-gcc-ifc-cmplx: 814 extends: 815 - .stage-3 816 - .linux_test_nofflags 817 tags: 818 - gce-nfs 819 variables: 820 TEST_ARCH: arch-ci-linux-gcc-ifc-cmplx 821 LOAD_MODULES: intel/19.0-nompilib cmake/3.20.0-vov726r 822 823linux-opt-cxx-quad: 824 extends: 825 - .stage-3 826 - .linux_test 827 tags: 828 - gce-nfs 829 variables: 830 TEST_ARCH: arch-ci-linux-opt-cxx-quad 831 832linux-ILP64: 833 extends: 834 - .stage-3 835 - .linux_test 836 tags: 837 - gce-nfs 838 variables: 839 TEST_ARCH: arch-ci-linux-ILP64 840 LOAD_MODULES: mpich/2-1.5-gcc750 841 842linux-64idx-i8-uni: 843 extends: 844 - .stage-3 845 - .linux_test 846 tags: 847 - gce-nfs 848 variables: 849 TEST_ARCH: arch-ci-linux-64idx-i8-uni 850 851mswin-intel-cxx-cmplx: 852 extends: 853 - .stage-3 854 - .mswin_test 855 tags: 856 - os:win 857 variables: 858 TEST_ARCH: arch-ci-mswin-intel-cxx-cmplx 859 860#mswin-intel: 861# extends: 862# - .stage-3 863# - .mswin_test 864# tags: 865# - os:win 866# variables: 867# TEST_ARCH: arch-ci-mswin-intel 868 869#mswin-opt-impi: 870# extends: 871# - .stage-3 872# - .mswin_test 873# tags: 874# - os:win 875# variables: 876# TEST_ARCH: arch-ci-mswin-opt-impi 877# DISABLE_TESTS: 1 878 879opensolaris-pkgs-opt: 880 extends: 881 - .stage-3 882 - .opensolaris_test 883 tags: 884 - name:n-gage 885 variables: 886 TEST_ARCH: arch-ci-opensolaris-pkgs-opt 887 888opensolaris-cmplx-pkgs-dbg: 889 extends: 890 - .stage-3 891 - .opensolaris_test 892 tags: 893 - name:n-gage 894 variables: 895 TEST_ARCH: arch-ci-opensolaris-cmplx-pkgs-dbg 896 897opensolaris-misc: 898 extends: 899 - .stage-3 900 - .opensolaris_test 901 tags: 902 - name:n-gage 903 variables: 904 TEST_ARCH: arch-ci-opensolaris-misc 905 906osx-cxx-cmplx-pkgs-dbg: 907 extends: 908 - .stage-3 909 - .osx_test 910 tags: 911 - os:macos 912 variables: 913 TEST_ARCH: arch-ci-osx-cxx-cmplx-pkgs-dbg 914 915osx-cxx-pkgs-opt: 916 extends: 917 - .stage-3 918 - .osx_test 919 tags: 920 - os:macos, opt 921 variables: 922 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 923 TEST_ARCH: arch-ci-osx-cxx-pkgs-opt 924 MAKE_CXXFLAGS: -Werror -Wno-pass-failed 925 926osx-dbg: 927 extends: 928 - .stage-3 929 - .osx_test 930 tags: 931 - os:macos 932 variables: 933 TEST_ARCH: arch-ci-osx-dbg 934 935osx-xsdk-opt: 936 extends: 937 - .stage-3 938 - .osx_test 939 tags: 940 - os:macos, opt 941 variables: 942 TEST_ARCH: arch-ci-osx-xsdk-opt 943 944# job for analyzing the final coverage results 945analyze-pipeline: 946 extends: .test 947 stage: .post 948 tags: 949 - gce-nfs-short 950 dependencies: 951 - linux-c-exodus-dbg 952 - linux-pkgs-gcov 953 - linux-cmplx-gcov 954 - linux-matlab-ilp64-gcov 955 - linux-gcov 956 variables: 957 PETSC_ARCH: arch-ci-analyze-pipeline 958 before_script: 959 - date 960 - hostname 961 script: 962 - ./configure --with-mpi=0 --with-cxx=0 --with-c2html 963 - make srchtml 964 - make mergegcov 965 artifacts: 966 name: "$CI_JOB_NAME" 967 when: always 968 paths: 969 - arch-ci-analyze-pipeline/* 970 expire_in: 4 days 971 972 973# 974# Base job for a documentation build 975# 976.docs: 977 stage: stage-2 978 tags: 979 - name:pj02 980 before_script: 981 - VENV=venv-petsc-docs && 982 python3 -m venv $VENV && 983 . $VENV/bin/activate && 984 cd doc && 985 pip install -r requirements.txt 986 allow_failure: true 987 988# 989# Build documentation and make available for review using GitLab pages 990# 991docs-review: 992 extends: 993 - .docs 994 - .test-basic 995 script: 996 - make html BUILDDIR="../public" SPHINXOPTS="-T -E" 997 - make latexpdf && mkdir -p ../public/docs/manual && cp _build/latex/manual.pdf ../public/html/docs/manual/ 998 environment: 999 name: review/$CI_COMMIT_REF_NAME 1000 url: https://$CI_PROJECT_NAMESPACE.gitlab.io/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/public/html/index.html 1001 artifacts: 1002 paths: 1003 - public 1004 except: 1005 variables: 1006 - $PETSC_CI_SCHEDULED =~ /yes/ 1007 1008# 1009# Deploy documentation using GitLab pages 1010# 1011pages: # this job name has special meaning to GitLab 1012 extends: .docs 1013 interruptible: true 1014 script: 1015 - mkdir -p ../public/ && cp public/* ../public/ 1016 - git fetch --unshallow --no-tags origin +release:remotes/origin/release +main:remotes/origin/main 1017 - 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/ 1018 - make clean BUILDDIR="../public/release" 1019 - 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/ 1020 only: 1021 variables: 1022 - $PETSC_CI_SCHEDULED == "yes" 1023 artifacts: 1024 paths: 1025 - public 1026 1027# 1028# 1029# The following tests are experimental; more tests by users at other sites may be added below this. Experimental test 1030# that fail produce a warning, but do not block execution of a pipeline. 1031# 1032 1033.test-experimental: 1034 extends: .test 1035 allow_failure: true 1036 1037