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: -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 CXXFLAGS=-std=c++11 123 TEST_SEARCH: snes_tutorials-ex48% 124 125uni-complex-float-int64: 126 extends: .stage-1 127 tags: 128 - stage1, name:pj02 129 variables: 130 PYTHON: python3 131 CONFIG_OPTS: --with-mpi=0 --with-scalar-type=complex --with-precision=single --with-64-bit-indices 132 TEST_SEARCH: ts_tutorials-ex11_adv_2d_quad_% 133 134c99-mlib-static-py2: 135 extends: .stage-1 136 tags: 137 - stage1, fedora 138 variables: 139 PYTHON: python2 140 CONFIG_OPTS: --with-mpi-dir=/home/glci/soft/mpich-3.3.2 --with-single-library=0 --with-shared-libraries=0 CFLAGS=-std=c99 141 TEST_SEARCH: snes_tutorials-ex19% snes_tutorials-ex5f90t% 142 MAKE_TEST_FFLAGS: -Werror -std=f2008 143 144petsc4py-install: 145 extends: .stage-2 146 tags: 147 - linux-stage2 148 variables: 149 PYTHON: python3 150 T_PREFIX: petsc-install 151 T_DESTDIR: petsc-destdir 152 T_PETSC4PY: src/binding/petsc4py 153 T_VALIDATE_CMD: lib/petsc/bin/maint/validate-petsc4py.sh 154 script: 155 - printf "PATH:$PATH\n" 156 - mkdir hide 157 - 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 158 - ${PYTHON} ./configure --prefix="${PWD}/${T_PREFIX}" --with-petsc4py=1 --with-debugging=0 --with-mpi-dir=/home/glci/soft/mpich-3.3.2 159 - make CFLAGS=-Werror CXXFLAGS="-Werror -Wzero-as-null-pointer-constant" FFLAGS=-Werror 160 - printf "====== Test A. Install into staging directory then into prefix directory (mimics distro package recipe) =====\n" 161 - make install DESTDIR="${PWD}/${T_DESTDIR}" 162 - test "$(find ${PWD}/${T_PREFIX} -mindepth 1 | wc -l)" -eq 0 163 - test "$(find ${PWD}/${T_DESTDIR} -mindepth 1 | wc -l)" -gt 0 164 - (cd "${PWD}/${T_DESTDIR}" && find * -exec install -v -D "{}" "/{}" \; ) 165 - mv arch-* hide/ && PETSC_DIR="${PWD}/${T_PREFIX}" ${T_VALIDATE_CMD} && mv hide/arch-* ./ 166 - rm -r "${PWD}/${T_PREFIX}" "${PWD}/${T_DESTDIR}" && mkdir "${PWD}/${T_PREFIX}" 167 - printf "====== Test B. Install directly into prefix directory =====\n" 168 - make install 169 - test "$(find ${PWD}/${T_PREFIX} -mindepth 1 | wc -l)" -gt 0 170 - mv arch-* hide/ && PETSC_DIR="${PWD}/${T_PREFIX}" ${T_VALIDATE_CMD} && mv hide/arch-* ./ 171 - rm -r "${PWD}/${T_PREFIX}"/*/petsc4py* 172 - printf "====== Test C. Install manually with setuptools =====\n" 173 - export PETSC_DIR="${PWD}/${T_PREFIX}" && (cd "${T_PETSC4PY}" && ${PYTHON} setup.py build) 174 - export PETSC_DIR="${PWD}/${T_PREFIX}" P="${PWD}" && (cd "${T_PETSC4PY}" && ${PYTHON} setup.py install --install-lib="${P}/${T_PREFIX}/lib") 175 - mv arch-* hide/ && PETSC_DIR="${PWD}/${T_PREFIX}" ${T_VALIDATE_CMD} && mv hide/arch-* ./ 176 - rm -r "${PWD}/${T_PREFIX}"/*/petsc4py* 177 - printf "====== Test D. Install manually with setuptools with staging =====\n" 178 - 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") 179 - (cd "${PWD}/${T_DESTDIR}" && find * -exec install -v -D "{}" "/{}" \; ) 180 - mv arch-* hide/ && PETSC_DIR="${PWD}/${T_PREFIX}" ${T_VALIDATE_CMD} && mv hide/arch-* ./ 181 182checksource: 183 extends: .test-basic 184 stage: .pre 185 tags: 186 - stage1 187 script: 188 - python3 ./configure --with-mpi=0 --with-fc=0 --with-cxx=0 189 - vermin --version 190 - make vermin 191 - make checkbadSource SHELL=bash 192 - make -f gmakefile check_output SHELL=bash 193 - make check_petsc4py_rst 194 195pause-for-approval: 196 extends: .test 197 stage: .pre 198 tags: 199 - stage1 200 only: 201 refs: 202 - merge_requests 203 variables: 204 - $CI_MERGE_REQUEST_EVENT_TYPE == "merged_result" 205 - $CI_MERGE_REQUEST_EVENT_TYPE == "detached" 206 script: 207 - echo "pause-for-approval has no script to run" 208 variables: 209 GIT_STRATEGY: none 210 when: manual 211 allow_failure: false 212 213# 214# This provides the basic order of operations and options template for stage-2,3 tests. 215# Not all stage-2,3 need to follow this template, but most will. 216# 217.stage-23: 218 extends: .test 219 script: 220 - if [ -d ${HOME}/petsc-hash-pkgs/ ]; then find ${HOME}/petsc-hash-pkgs/ -maxdepth 1 -mindepth 1 -type d -mtime +25 -exec rm -rf {} \; ; fi 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 347osx-m1: 348 extends: 349 - .stage-2 350 - .osx_test 351 tags: 352 - os:macos-m1 353 variables: 354 TEST_ARCH: arch-ci-osx-m1 355 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump 356 357freebsd-cxx-cmplx-64idx-dbg: 358 extends: 359 - .stage-2 360 - .freebsd_test 361 tags: 362 - os:fbsd 363 variables: 364 TEST_ARCH: arch-ci-freebsd-cxx-cmplx-64idx-dbg 365 366freebsd-c-single-opt: 367 extends: 368 - .stage-2 369 - .freebsd_test 370 tags: 371 - os:fbsd 372 variables: 373 TEST_ARCH: arch-ci-freebsd-c-single-opt 374 375linux-cuda-double: 376 extends: 377 - .stage-3 378 - .linux_test 379 tags: 380 - gpu:nvidia, os:linux, name:p1 381 variables: 382 TEST_ARCH: arch-ci-linux-cuda-double 383 384linux-gcc-quad-64idx-dbg: 385 extends: 386 - .stage-2 387 - .linux_test 388 tags: 389 - linux-stage2 390 variables: 391 TEST_ARCH: arch-ci-linux-gcc-quad-64idx-dbg 392 393linux-gcc-pkgs-opt: 394 extends: 395 - .stage-2 396 - .linux_test 397 tags: 398 - linux-stage2 399 variables: 400 TEST_ARCH: arch-ci-linux-gcc-pkgs-opt 401 402linux-gcc-complex-opt-32bit: 403 extends: 404 - .stage-2 405 - .linux_test 406 tags: 407 - linux-stage2 408 variables: 409 TEST_ARCH: arch-ci-linux-gcc-complex-opt-32bit 410 411#do not run checkstack on MSWIN-UNI 412mswin-uni: 413 extends: 414 - .stage-3 415 - .mswin_test 416 tags: 417 - win-stage2 418 variables: 419 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump 420 TEST_ARCH: arch-ci-mswin-uni 421 422mswin-gnu: 423 extends: 424 - .stage-3 425 - .mswin_test 426 tags: 427 - win-stage2 428 variables: 429 TEST_ARCH: arch-ci-mswin-gnu 430 MAKE_CFLAGS: -Werror 431 MAKE_CXXFLAGS: -Werror 432 MAKE_FFLAGS: -Werror 433 DISABLE_TESTS: 1 434 artifacts: 435 reports: 436 paths: 437 - arch-*/lib/petsc/conf/*.log 438 expire_in: 4 days 439 440# 441# The following tests run as part of stage-3. 442# 443 444freebsd-cxx-cmplx-pkgs-dbg: 445 extends: 446 - .stage-3 447 - .freebsd_test 448 tags: 449 - os:fbsd 450 variables: 451 TEST_ARCH: arch-ci-freebsd-cxx-cmplx-pkgs-dbg 452 453freebsd-cxx-pkgs-opt: 454 extends: 455 - .stage-3 456 - .freebsd_test 457 tags: 458 - os:fbsd 459 variables: 460 PETSC_OPTIONS: -vecscatter_mpi1 false -options_left false -checkstack 461 TEST_ARCH: arch-ci-freebsd-cxx-pkgs-opt 462 463freebsd-pkgs-opt: 464 extends: 465 - .stage-3 466 - .freebsd_test 467 tags: 468 - os:fbsd 469 variables: 470 TEST_ARCH: arch-ci-freebsd-pkgs-opt 471 472linux-hip-double: 473 extends: 474 - .stage-2 475 - .linux_test_noflags 476 tags: 477 - gpu:amd, os:linux, name:hip-txcorp 478 variables: 479 TEST_ARCH: arch-ci-linux-hip-double 480 481linux-sycl-double: 482 extends: 483 - .stage-3 484 - .linux_test_nofflags 485 tags: 486 - os:linux, name:pj01 487 variables: 488 TEST_ARCH: arch-ci-linux-sycl-double 489 INIT_SCRIPT: /home/glci/bin/ci-inteloneapi.sh 490 DISABLE_TESTS: 1 491 492linux-c-exodus-dbg: 493 extends: 494 - .stage-3 495 - .linux_test 496 tags: 497 - gpu:nvidia, os:linux, name:frog 498 variables: 499 TEST_ARCH: arch-ci-linux-c-exodus-dbg 500 RUN_GCOV: 1 501 TEST_OPTS: -j1 query=requires queryval=cuda 502 503linux-cuda11-double: 504 extends: 505 - .stage-3 506 - .linux_test 507 tags: 508 - gpu:nvidia, os:linux, name:frog 509 variables: 510 TEST_ARCH: arch-ci-linux-cuda11-double 511 TEST_OPTS: -j1 query=requires queryval=cuda 512 513linux-cuda11-complex: 514 extends: 515 - .stage-3 516 - .linux_test 517 tags: 518 - gpu:nvidia, os:linux, name:frog 519 variables: 520 TEST_ARCH: arch-ci-linux-cuda11-complex 521 TEST_OPTS: -j1 query=requires queryval=cuda 522 523linux-cuda-double-64idx: 524 extends: 525 - .stage-3 526 - .linux_test 527 tags: 528 - gpu:nvidia, os:linux, name:p1 529 variables: 530 TEST_ARCH: arch-ci-linux-cuda-double-64idx 531 TEST_OPTS: -j1 query=requires queryval=cuda 532 533linux-cuda-single-cxx: 534 extends: 535 - .stage-3 536 - .linux_test 537 tags: 538 - gpu:nvidia, os:linux 539 variables: 540 TEST_ARCH: arch-ci-linux-cuda-single-cxx 541 TEST_OPTS: -j1 query=requires queryval=cuda 542 543linux-cuda-uni-pkgs: 544 extends: 545 - .stage-3 546 - .linux_test 547 tags: 548 - gpu:nvidia, os:linux 549 variables: 550 TEST_ARCH: arch-ci-linux-cuda-uni-pkgs 551 TEST_OPTS: -j4 query=requires queryval=cuda 552 553linux-viennacl: 554 extends: 555 - .stage-3 556 - .linux_test 557 tags: 558 - gpu:nvidia, os:linux 559 variables: 560 TEST_ARCH: arch-ci-linux-viennacl 561 MAKE_CXXFLAGS: -Werror -Wno-ignored-attributes 562 TEST_OPTS: -j1 query=requires queryval=viennacl 563 564linux-without-fc: 565 extends: 566 - .stage-3 567 - .linux_test 568 tags: 569 - gce-nfs 570 variables: 571 TEST_ARCH: arch-ci-linux-without-fc 572 573linux-cmplx-single: 574 extends: 575 - .stage-3 576 - .linux_test 577 tags: 578 - name:si 579 variables: 580 TEST_ARCH: arch-ci-linux-cmplx-single 581 582linux-gcc-cxx-avx2: 583 extends: 584 - .stage-3 585 - .linux_test 586 tags: 587 - name:isdp001 588 variables: 589 TEST_ARCH: arch-ci-linux-gcc-cxx-avx2 590 591linux-clang-avx: 592 extends: 593 - .stage-3 594 - .linux_test 595 tags: 596 - name:isdp001 597 variables: 598 TEST_ARCH: arch-ci-linux-clang-avx 599 600linux-knl: 601 extends: 602 - .stage-3 603 - .linux_test 604 tags: 605 - name:isdp001 606 variables: 607 TEST_ARCH: arch-ci-linux-knl 608 609linux-intel-mkl-single: 610 extends: 611 - .stage-3 612 - .linux_test_nofflags 613 tags: 614 - name:isdp001 615 variables: 616 TEST_ARCH: arch-ci-linux-intel-mkl-single 617 618linux-cxx-cmplx-pkgs-64idx: 619 extends: 620 - .stage-3 621 - .linux_test 622 tags: 623 - gce-nfs 624 variables: 625 TEST_ARCH: arch-ci-linux-cxx-cmplx-pkgs-64idx 626 LOAD_MODULES: llvm/9.0.0-7fyffox gcc/8.3.0-fjpc5ys cmake/3.14.2-rl3q676 627 628# Set env vars for 'Kokkos + OpenMP' tests, so that they won't give warnings 629linux-pkgs-dbg-ftn-interfaces: 630 extends: 631 - .stage-3 632 - .linux_test 633 tags: 634 - gce-nfs 635 variables: 636 TEST_ARCH: arch-ci-linux-pkgs-dbg-ftn-interfaces 637 LOAD_MODULES: cmake/3.20.5-yjp2hz6 638 OMP_PROC_BIND: "false" 639 OMP_NUM_THREADS: 4 640 641linux-pkgs-cxx-mlib: 642 extends: 643 - .stage-3 644 - .linux_test 645 tags: 646 - gce-nfs 647 variables: 648 TEST_ARCH: arch-ci-linux-pkgs-cxx-mlib 649 LOAD_MODULES: gcc/11.1.0-5ikoznk cmake/3.20.5-yjp2hz6 650 651linux-pkgs-valgrind: 652 extends: 653 - .stage-3 654 - .linux_test 655 tags: 656 - gce-nfs, linux-fast 657 variables: 658 TEST_ARCH: arch-ci-linux-pkgs-valgrind 659 TIMEOUT: 7200 660 LOAD_MODULES: valgrind/3.17.0 661 662linux-pkgs-opt: 663 extends: 664 - .stage-3 665 - .linux_test 666 tags: 667 - gce-nfs, linux-fast 668 variables: 669 TEST_ARCH: arch-ci-linux-pkgs-opt 670 LOAD_MODULES: gcc/10.1.0-5hiqhdh 671 672linux-pkgs-gcov: 673 extends: 674 - .stage-3 675 - .linux_test 676 tags: 677 - gce-nfs, linux-gcov 678 variables: 679 TEST_ARCH: arch-ci-linux-pkgs-gcov 680 RUN_GCOV: 1 681 682linux-cmplx-gcov: 683 extends: 684 - .stage-3 685 - .linux_test 686 tags: 687 - gce-nfs, linux-gcov 688 variables: 689 PETSC_OPTIONS: -vecscatter_mpi1 false -options_left false -checkstack 690 TEST_ARCH: arch-ci-linux-cmplx-gcov 691 LOAD_MODULES: gcc/8.3.0-fjpc5ys 692 RUN_GCOV: 1 693 694linux-matlab-ilp64-gcov: 695 extends: 696 - .stage-3 697 - .linux_test 698 tags: 699 - gce-nfs, linux-gcov 700 variables: 701 TEST_ARCH: arch-ci-linux-matlab-ilp64-gcov 702 LOAD_MODULES: matlab/R2018a 703 RUN_GCOV: 1 704 allow_failure: true 705 706linux-gcov: 707 extends: 708 - .stage-3 709 - .linux_test 710 tags: 711 - gce-nfs, linux-gcov 712 variables: 713 TEST_ARCH: arch-ci-linux-gcov 714 RUN_GCOV: 1 715 716linux-pgi: 717 extends: 718 - .stage-3 719 - .linux_test_noflags 720 tags: 721 - gce-nfs, linux-mcpu 722 variables: 723 TEST_ARCH: arch-ci-linux-pgi 724 LOAD_MODULES: hpc_sdk/20.9 725 726linux-nagfor: 727 extends: 728 - .stage-3 729 - .linux_test_nofflags 730 tags: 731 - gce-nfs, linux-mcpu 732 variables: 733 LOAD_MODULES: nag/6.1 734 TEST_ARCH: arch-ci-linux-nagfor 735 736linux-intel-cmplx: 737 extends: 738 - .stage-3 739 - .linux_test_nofflags 740 tags: 741 - gce-nfs 742 variables: 743 TEST_ARCH: arch-ci-linux-intel-cmplx 744 LOAD_MODULES: intel-mkl/19.5 intel/19.0-nompilib cmake/3.20.5-yjp2hz6 745 ENABLE_PETSC4PY_LDPRELOAD: 1 746 747linux-xsdk-dbg: 748 extends: 749 - .stage-3 750 - .linux_test 751 tags: 752 - gce-nfs 753 variables: 754 TEST_ARCH: arch-ci-linux-xsdk-dbg 755 LOAD_MODULES: gcc/8.3.0-fjpc5ys 756 757linux-analyzer: 758 extends: 759 - .stage-2 760 - .linux_test 761 tags: 762 - gce-nfs-short 763 script: 764 - printf "PATH:$PATH\n" 765 - printf "PYTHONPATH:$PYTHONPATH\n" 766 - printf "PETSC_OPTIONS:$PETSC_OPTIONS\n" 767 - 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 768 - printf "./config/examples/${TEST_ARCH}.py\n" 769 - cat ./config/examples/${TEST_ARCH}.py 770 - ./config/examples/${TEST_ARCH}.py 771 - make LINTER_OPTIONS="${LINTER_OPTIONS}" test-lint 772 - make LINTER_OPTIONS="${LINTER_OPTIONS}" lint 773 variables: 774 TEST_ARCH: arch-ci-linux-analyzer 775 LOAD_MODULES: llvm/11.0.0-snbtima cmake/3.20.0-vov726r 776 LINTER_OPTIONS: "--PETSC_ARCH=${TEST_ARCH} --clang_lib=`llvm-config --libdir`/libclang.so.11 --verbose --werror" 777 artifacts: 778 paths: 779 - ${TEST_ARCH}/lib/petsc/conf/*.log 780 - ./petscLintPatches/*.patch 781 782linux-intel: 783 extends: 784 - .stage-3 785 - .linux_test_nofflags 786 tags: 787 - gce-nfs 788 variables: 789 TEST_ARCH: arch-ci-linux-intel 790 LOAD_MODULES: intel-mkl/19.5 intel/19.0-nompilib 791 792linux-opt-misc: 793 extends: 794 - .stage-3 795 - .linux_test 796 tags: 797 - gce-nfs, linux-fast 798 variables: 799 TEST_ARCH: arch-ci-linux-opt-misc 800 LOAD_MODULES: gcc/6.5.0-57usejd 801 802linux-pkgs-64idx: 803 extends: 804 - .stage-3 805 - .linux_test 806 tags: 807 - gce-nfs, linux-mcpu 808 variables: 809 TEST_ARCH: arch-ci-linux-pkgs-64idx 810 LOAD_MODULES: cmake/3.20.5-yjp2hz6 intel-mkl/19.5 811 812linux-64idx-i8: 813 extends: 814 - .stage-3 815 - .linux_test 816 tags: 817 - gce-nfs 818 variables: 819 TEST_ARCH: arch-ci-linux-64idx-i8 820 821linux-gcc-ifc-cmplx: 822 extends: 823 - .stage-3 824 - .linux_test_nofflags 825 tags: 826 - gce-nfs 827 variables: 828 TEST_ARCH: arch-ci-linux-gcc-ifc-cmplx 829 LOAD_MODULES: intel/19.0-nompilib cmake/3.20.0-vov726r 830 831linux-opt-cxx-quad: 832 extends: 833 - .stage-3 834 - .linux_test 835 tags: 836 - gce-nfs 837 variables: 838 TEST_ARCH: arch-ci-linux-opt-cxx-quad 839 840linux-ILP64: 841 extends: 842 - .stage-3 843 - .linux_test 844 tags: 845 - gce-nfs 846 variables: 847 TEST_ARCH: arch-ci-linux-ILP64 848 LOAD_MODULES: mpich/2-1.5-gcc750 849 850linux-64idx-i8-uni: 851 extends: 852 - .stage-3 853 - .linux_test 854 tags: 855 - gce-nfs 856 variables: 857 TEST_ARCH: arch-ci-linux-64idx-i8-uni 858 859mswin-intel-cxx-cmplx: 860 extends: 861 - .stage-3 862 - .mswin_test 863 tags: 864 - os:win 865 variables: 866 TEST_ARCH: arch-ci-mswin-intel-cxx-cmplx 867 868#mswin-intel: 869# extends: 870# - .stage-3 871# - .mswin_test 872# tags: 873# - os:win 874# variables: 875# TEST_ARCH: arch-ci-mswin-intel 876 877#mswin-opt-impi: 878# extends: 879# - .stage-3 880# - .mswin_test 881# tags: 882# - os:win 883# variables: 884# TEST_ARCH: arch-ci-mswin-opt-impi 885# DISABLE_TESTS: 1 886 887opensolaris-pkgs-opt: 888 extends: 889 - .stage-3 890 - .opensolaris_test 891 tags: 892 - name:n-gage 893 variables: 894 TEST_ARCH: arch-ci-opensolaris-pkgs-opt 895 896opensolaris-cmplx-pkgs-dbg: 897 extends: 898 - .stage-3 899 - .opensolaris_test 900 tags: 901 - name:n-gage 902 variables: 903 TEST_ARCH: arch-ci-opensolaris-cmplx-pkgs-dbg 904 905opensolaris-misc: 906 extends: 907 - .stage-3 908 - .opensolaris_test 909 tags: 910 - name:n-gage 911 variables: 912 TEST_ARCH: arch-ci-opensolaris-misc 913 914osx-cxx-cmplx-pkgs-dbg: 915 extends: 916 - .stage-3 917 - .osx_test 918 tags: 919 - os:macos 920 variables: 921 TEST_ARCH: arch-ci-osx-cxx-cmplx-pkgs-dbg 922 923osx-cxx-pkgs-opt: 924 extends: 925 - .stage-3 926 - .osx_test 927 tags: 928 - os:macos, opt 929 variables: 930 PETSC_OPTIONS: -vecscatter_mpi1 false -options_left false -checkstack 931 TEST_ARCH: arch-ci-osx-cxx-pkgs-opt 932 MAKE_CXXFLAGS: -Werror -Wno-pass-failed 933 934osx-dbg: 935 extends: 936 - .stage-3 937 - .osx_test 938 tags: 939 - os:macos 940 variables: 941 TEST_ARCH: arch-ci-osx-dbg 942 943osx-xsdk-opt: 944 extends: 945 - .stage-3 946 - .osx_test 947 tags: 948 - os:macos, opt 949 variables: 950 TEST_ARCH: arch-ci-osx-xsdk-opt 951 952# job for analyzing the final coverage results 953analyze-pipeline: 954 extends: .test 955 stage: .post 956 tags: 957 - gce-nfs-short 958 dependencies: 959 - linux-c-exodus-dbg 960 - linux-pkgs-gcov 961 - linux-cmplx-gcov 962 - linux-matlab-ilp64-gcov 963 - linux-gcov 964 variables: 965 PETSC_ARCH: arch-ci-analyze-pipeline 966 before_script: 967 - date 968 - hostname 969 script: 970 - ./configure --with-mpi=0 --with-cxx=0 --with-c2html 971 - make srchtml 972 - make mergegcov 973 artifacts: 974 name: "$CI_JOB_NAME" 975 when: always 976 paths: 977 - arch-ci-analyze-pipeline/* 978 expire_in: 4 days 979 980 981# 982# Base job for a documentation build 983# 984.docs: 985 stage: stage-2 986 tags: 987 - name:pj02 988 before_script: 989 - VENV=venv-petsc-docs && 990 python3 -m venv $VENV && 991 . $VENV/bin/activate && 992 cd doc && 993 pip install -r requirements.txt 994 995# 996# Build documentation and make available for review using GitLab pages 997# 998docs-review: 999 extends: 1000 - .docs 1001 - .test-basic 1002 script: 1003 - (make html BUILDDIR="../public" SPHINXOPTS="-T -E -W --keep-going") || (printf "Sphinx build failed (warnings count as errors)\n" && false) 1004 - (make latexpdf SPHINXOPTS="-T -E -W --keep-going") || (printf "Sphinx build failed (warnings count as errors)\n" && false) 1005 - cp _build/latex/manual.pdf ../public/html/docs/manual/ 1006 environment: 1007 name: review/$CI_COMMIT_REF_NAME 1008 url: https://$CI_PROJECT_NAMESPACE.gitlab.io/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/public/html/index.html 1009 artifacts: 1010 paths: 1011 - public 1012 except: 1013 variables: 1014 - $PETSC_CI_SCHEDULED =~ /yes/ 1015 1016# 1017# Deploy documentation using GitLab pages 1018# 1019pages: # this job name has special meaning to GitLab 1020 extends: .docs 1021 interruptible: true 1022 script: 1023 - mkdir -p ../public/ && cp public/* ../public/ 1024 - git fetch --unshallow --no-tags origin +release:remotes/origin/release +main:remotes/origin/main 1025 - 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/ 1026 - make clean BUILDDIR="../public/release" 1027 - 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/ 1028 only: 1029 variables: 1030 - $PETSC_CI_SCHEDULED == "yes" 1031 artifacts: 1032 paths: 1033 - public 1034 1035# 1036# 1037# The following tests are experimental; more tests by users at other sites may be added below this. Experimental test 1038# that fail produce a warning, but do not block execution of a pipeline. 1039# 1040 1041.test-experimental: 1042 extends: .test 1043 allow_failure: true 1044 1045