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-2 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-2 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-3 475 - .linux_test_noflags 476 tags: 477 - gpu:amd, os:linux, name:hip-instinct 478 variables: 479 TEST_ARCH: arch-ci-linux-hip-double 480 LOAD_MODULES: gcc/10.2 cmake/3.19.6 481 482linux-sycl-double: 483 extends: 484 - .stage-3 485 - .linux_test_nofflags 486 tags: 487 - os:linux, name:pj01 488 variables: 489 TEST_ARCH: arch-ci-linux-sycl-double 490 INIT_SCRIPT: /home/glci/bin/ci-inteloneapi.sh 491 DISABLE_TESTS: 1 492 493linux-c-exodus-dbg: 494 extends: 495 - .stage-3 496 - .linux_test 497 tags: 498 - gpu:nvidia, os:linux, name:frog 499 variables: 500 TEST_ARCH: arch-ci-linux-c-exodus-dbg 501 RUN_GCOV: 1 502 TEST_OPTS: -j1 query=requires queryval=cuda 503 504linux-cuda11-double: 505 extends: 506 - .stage-3 507 - .linux_test 508 tags: 509 - gpu:nvidia, os:linux, name:frog 510 variables: 511 TEST_ARCH: arch-ci-linux-cuda11-double 512 TEST_OPTS: -j1 query=requires queryval=cuda 513 514linux-cuda11-complex: 515 extends: 516 - .stage-3 517 - .linux_test 518 tags: 519 - gpu:nvidia, os:linux, name:frog 520 variables: 521 TEST_ARCH: arch-ci-linux-cuda11-complex 522 TEST_OPTS: -j1 query=requires queryval=cuda 523 524linux-cuda-double-64idx: 525 extends: 526 - .stage-3 527 - .linux_test 528 tags: 529 - gpu:nvidia, os:linux, name:p1 530 variables: 531 TEST_ARCH: arch-ci-linux-cuda-double-64idx 532 TEST_OPTS: -j1 query=requires queryval=cuda 533 534linux-cuda-single-cxx: 535 extends: 536 - .stage-3 537 - .linux_test 538 tags: 539 - gpu:nvidia, os:linux 540 variables: 541 TEST_ARCH: arch-ci-linux-cuda-single-cxx 542 TEST_OPTS: -j1 query=requires queryval=cuda 543 544linux-cuda-uni-pkgs: 545 extends: 546 - .stage-3 547 - .linux_test 548 tags: 549 - gpu:nvidia, os:linux 550 variables: 551 TEST_ARCH: arch-ci-linux-cuda-uni-pkgs 552 TEST_OPTS: -j4 query=requires queryval=cuda 553 554linux-viennacl: 555 extends: 556 - .stage-3 557 - .linux_test 558 tags: 559 - gpu:nvidia, os:linux 560 variables: 561 TEST_ARCH: arch-ci-linux-viennacl 562 MAKE_CXXFLAGS: -Werror -Wno-ignored-attributes 563 TEST_OPTS: -j1 query=requires queryval=viennacl 564 565linux-without-fc: 566 extends: 567 - .stage-3 568 - .linux_test 569 tags: 570 - gce-nfs 571 variables: 572 TEST_ARCH: arch-ci-linux-without-fc 573 574linux-cmplx-single: 575 extends: 576 - .stage-3 577 - .linux_test 578 tags: 579 - name:si 580 variables: 581 TEST_ARCH: arch-ci-linux-cmplx-single 582 583linux-gcc-cxx-avx2: 584 extends: 585 - .stage-3 586 - .linux_test 587 tags: 588 - name:isdp001 589 variables: 590 TEST_ARCH: arch-ci-linux-gcc-cxx-avx2 591 592linux-clang-avx: 593 extends: 594 - .stage-3 595 - .linux_test 596 tags: 597 - name:isdp001 598 variables: 599 TEST_ARCH: arch-ci-linux-clang-avx 600 601linux-knl: 602 extends: 603 - .stage-3 604 - .linux_test 605 tags: 606 - name:isdp001 607 variables: 608 TEST_ARCH: arch-ci-linux-knl 609 610linux-intel-mkl-single: 611 extends: 612 - .stage-3 613 - .linux_test_nofflags 614 tags: 615 - name:isdp001 616 variables: 617 TEST_ARCH: arch-ci-linux-intel-mkl-single 618 619linux-cxx-cmplx-pkgs-64idx: 620 extends: 621 - .stage-3 622 - .linux_test 623 tags: 624 - gce-nfs 625 variables: 626 TEST_ARCH: arch-ci-linux-cxx-cmplx-pkgs-64idx 627 LOAD_MODULES: llvm/9.0.0-7fyffox gcc/8.3.0-fjpc5ys cmake/3.14.2-rl3q676 628 629# Set env vars for 'Kokkos + OpenMP' tests, so that they won't give warnings 630linux-pkgs-dbg-ftn-interfaces: 631 extends: 632 - .stage-3 633 - .linux_test 634 tags: 635 - gce-nfs 636 variables: 637 TEST_ARCH: arch-ci-linux-pkgs-dbg-ftn-interfaces 638 LOAD_MODULES: cmake/3.20.5-yjp2hz6 639 OMP_PROC_BIND: "false" 640 OMP_NUM_THREADS: 4 641 642linux-pkgs-cxx-mlib: 643 extends: 644 - .stage-3 645 - .linux_test 646 tags: 647 - gce-nfs 648 variables: 649 TEST_ARCH: arch-ci-linux-pkgs-cxx-mlib 650 LOAD_MODULES: gcc/11.1.0-5ikoznk cmake/3.20.5-yjp2hz6 651 652linux-pkgs-valgrind: 653 extends: 654 - .stage-3 655 - .linux_test 656 tags: 657 - gce-nfs, linux-fast 658 variables: 659 TEST_ARCH: arch-ci-linux-pkgs-valgrind 660 TIMEOUT: 7200 661 LOAD_MODULES: valgrind/3.17.0 662 663linux-pkgs-opt: 664 extends: 665 - .stage-3 666 - .linux_test 667 tags: 668 - gce-nfs, linux-fast 669 variables: 670 TEST_ARCH: arch-ci-linux-pkgs-opt 671 LOAD_MODULES: gcc/10.1.0-5hiqhdh 672 673linux-pkgs-gcov: 674 extends: 675 - .stage-3 676 - .linux_test 677 tags: 678 - gce-nfs, linux-gcov 679 variables: 680 TEST_ARCH: arch-ci-linux-pkgs-gcov 681 RUN_GCOV: 1 682 683linux-cmplx-gcov: 684 extends: 685 - .stage-3 686 - .linux_test 687 tags: 688 - gce-nfs, linux-gcov 689 variables: 690 PETSC_OPTIONS: -vecscatter_mpi1 false -options_left false -checkstack 691 TEST_ARCH: arch-ci-linux-cmplx-gcov 692 LOAD_MODULES: gcc/8.3.0-fjpc5ys 693 RUN_GCOV: 1 694 695linux-matlab-ilp64-gcov: 696 extends: 697 - .stage-3 698 - .linux_test 699 tags: 700 - gce-nfs, linux-gcov 701 variables: 702 TEST_ARCH: arch-ci-linux-matlab-ilp64-gcov 703 LOAD_MODULES: matlab/R2018a 704 RUN_GCOV: 1 705 allow_failure: true 706 707linux-gcov: 708 extends: 709 - .stage-3 710 - .linux_test 711 tags: 712 - gce-nfs, linux-gcov 713 variables: 714 TEST_ARCH: arch-ci-linux-gcov 715 RUN_GCOV: 1 716 717linux-pgi: 718 extends: 719 - .stage-3 720 - .linux_test_noflags 721 tags: 722 - gce-nfs, linux-mcpu 723 variables: 724 TEST_ARCH: arch-ci-linux-pgi 725 LOAD_MODULES: hpc_sdk/20.9 726 727linux-nagfor: 728 extends: 729 - .stage-3 730 - .linux_test_nofflags 731 tags: 732 - gce-nfs, linux-mcpu 733 variables: 734 LOAD_MODULES: nag/6.1 735 TEST_ARCH: arch-ci-linux-nagfor 736 737linux-intel-cmplx: 738 extends: 739 - .stage-3 740 - .linux_test_nofflags 741 tags: 742 - gce-nfs 743 variables: 744 TEST_ARCH: arch-ci-linux-intel-cmplx 745 LOAD_MODULES: intel-mkl/19.5 intel/19.0-nompilib cmake/3.20.5-yjp2hz6 746 ENABLE_PETSC4PY_LDPRELOAD: 1 747 748linux-xsdk-dbg: 749 extends: 750 - .stage-3 751 - .linux_test 752 tags: 753 - gce-nfs 754 variables: 755 TEST_ARCH: arch-ci-linux-xsdk-dbg 756 LOAD_MODULES: gcc/8.3.0-fjpc5ys 757 758linux-analyzer: 759 extends: 760 - .stage-2 761 - .linux_test 762 tags: 763 - gce-nfs-short 764 script: 765 - printf "PATH:$PATH\n" 766 - printf "PYTHONPATH:$PYTHONPATH\n" 767 - printf "PETSC_OPTIONS:$PETSC_OPTIONS\n" 768 - 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 769 - printf "./config/examples/${TEST_ARCH}.py\n" 770 - cat ./config/examples/${TEST_ARCH}.py 771 - ./config/examples/${TEST_ARCH}.py 772 - make LINTER_OPTIONS="${LINTER_OPTIONS}" test-lint 773 - make LINTER_OPTIONS="${LINTER_OPTIONS}" lint 774 variables: 775 TEST_ARCH: arch-ci-linux-analyzer 776 LOAD_MODULES: llvm/11.0.0-snbtima cmake/3.20.0-vov726r 777 LINTER_OPTIONS: "--PETSC_ARCH=${TEST_ARCH} --clang_lib=`llvm-config --libdir`/libclang.so.11 --verbose --werror" 778 artifacts: 779 paths: 780 - ${TEST_ARCH}/lib/petsc/conf/*.log 781 - ./petscLintPatches/*.patch 782 783linux-intel: 784 extends: 785 - .stage-3 786 - .linux_test_nofflags 787 tags: 788 - gce-nfs 789 variables: 790 TEST_ARCH: arch-ci-linux-intel 791 LOAD_MODULES: intel-mkl/19.5 intel/19.0-nompilib 792 793linux-opt-misc: 794 extends: 795 - .stage-3 796 - .linux_test 797 tags: 798 - gce-nfs, linux-fast 799 variables: 800 TEST_ARCH: arch-ci-linux-opt-misc 801 LOAD_MODULES: gcc/6.5.0-57usejd 802 803linux-pkgs-64idx: 804 extends: 805 - .stage-3 806 - .linux_test 807 tags: 808 - gce-nfs, linux-mcpu 809 variables: 810 TEST_ARCH: arch-ci-linux-pkgs-64idx 811 LOAD_MODULES: cmake/3.20.5-yjp2hz6 intel-mkl/19.5 812 813linux-64idx-i8: 814 extends: 815 - .stage-3 816 - .linux_test 817 tags: 818 - gce-nfs 819 variables: 820 TEST_ARCH: arch-ci-linux-64idx-i8 821 822linux-gcc-ifc-cmplx: 823 extends: 824 - .stage-3 825 - .linux_test_nofflags 826 tags: 827 - gce-nfs 828 variables: 829 TEST_ARCH: arch-ci-linux-gcc-ifc-cmplx 830 LOAD_MODULES: intel/19.0-nompilib cmake/3.20.0-vov726r 831 832linux-opt-cxx-quad: 833 extends: 834 - .stage-3 835 - .linux_test 836 tags: 837 - gce-nfs 838 variables: 839 TEST_ARCH: arch-ci-linux-opt-cxx-quad 840 841linux-ILP64: 842 extends: 843 - .stage-3 844 - .linux_test 845 tags: 846 - gce-nfs 847 variables: 848 TEST_ARCH: arch-ci-linux-ILP64 849 LOAD_MODULES: mpich/2-1.5-gcc750 850 851linux-64idx-i8-uni: 852 extends: 853 - .stage-3 854 - .linux_test 855 tags: 856 - gce-nfs 857 variables: 858 TEST_ARCH: arch-ci-linux-64idx-i8-uni 859 860mswin-intel-cxx-cmplx: 861 extends: 862 - .stage-3 863 - .mswin_test 864 tags: 865 - os:win 866 variables: 867 TEST_ARCH: arch-ci-mswin-intel-cxx-cmplx 868 869#mswin-intel: 870# extends: 871# - .stage-3 872# - .mswin_test 873# tags: 874# - os:win 875# variables: 876# TEST_ARCH: arch-ci-mswin-intel 877 878#mswin-opt-impi: 879# extends: 880# - .stage-3 881# - .mswin_test 882# tags: 883# - os:win 884# variables: 885# TEST_ARCH: arch-ci-mswin-opt-impi 886# DISABLE_TESTS: 1 887 888opensolaris-pkgs-opt: 889 extends: 890 - .stage-3 891 - .opensolaris_test 892 tags: 893 - name:n-gage 894 variables: 895 TEST_ARCH: arch-ci-opensolaris-pkgs-opt 896 897opensolaris-cmplx-pkgs-dbg: 898 extends: 899 - .stage-3 900 - .opensolaris_test 901 tags: 902 - name:n-gage 903 variables: 904 TEST_ARCH: arch-ci-opensolaris-cmplx-pkgs-dbg 905 906opensolaris-misc: 907 extends: 908 - .stage-3 909 - .opensolaris_test 910 tags: 911 - name:n-gage 912 variables: 913 TEST_ARCH: arch-ci-opensolaris-misc 914 915osx-cxx-cmplx-pkgs-dbg: 916 extends: 917 - .stage-3 918 - .osx_test 919 tags: 920 - os:macos 921 variables: 922 TEST_ARCH: arch-ci-osx-cxx-cmplx-pkgs-dbg 923 924osx-cxx-pkgs-opt: 925 extends: 926 - .stage-3 927 - .osx_test 928 tags: 929 - os:macos, opt 930 variables: 931 PETSC_OPTIONS: -vecscatter_mpi1 false -options_left false -checkstack 932 TEST_ARCH: arch-ci-osx-cxx-pkgs-opt 933 MAKE_CXXFLAGS: -Werror -Wno-pass-failed 934 935osx-dbg: 936 extends: 937 - .stage-3 938 - .osx_test 939 tags: 940 - os:macos 941 variables: 942 TEST_ARCH: arch-ci-osx-dbg 943 944osx-xsdk-opt: 945 extends: 946 - .stage-3 947 - .osx_test 948 tags: 949 - os:macos, opt 950 variables: 951 TEST_ARCH: arch-ci-osx-xsdk-opt 952 953# job for analyzing the final coverage results 954analyze-pipeline: 955 extends: .test 956 stage: .post 957 tags: 958 - gce-nfs-short 959 dependencies: 960 - linux-c-exodus-dbg 961 - linux-pkgs-gcov 962 - linux-cmplx-gcov 963 - linux-matlab-ilp64-gcov 964 - linux-gcov 965 variables: 966 PETSC_ARCH: arch-ci-analyze-pipeline 967 before_script: 968 - date 969 - hostname 970 script: 971 - ./configure --with-mpi=0 --with-cxx=0 --with-c2html 972 - make srchtml 973 - make mergegcov 974 artifacts: 975 name: "$CI_JOB_NAME" 976 when: always 977 paths: 978 - arch-ci-analyze-pipeline/* 979 expire_in: 4 days 980 981 982# 983# Base job for a documentation build 984# 985.docs: 986 stage: stage-2 987 tags: 988 - name:pj02 989 before_script: 990 - VENV=venv-petsc-docs && 991 python3 -m venv $VENV && 992 . $VENV/bin/activate && 993 cd doc && 994 pip install -r requirements.txt 995 996# 997# Build documentation and make available for review using GitLab pages 998# 999docs-review: 1000 extends: 1001 - .docs 1002 - .test-basic 1003 script: 1004 - (make html BUILDDIR="../public" SPHINXOPTS="-T -E -W --keep-going") || (printf "Sphinx build failed (warnings count as errors)\n" && false) 1005 - (make latexpdf SPHINXOPTS="-T -E -W --keep-going") || (printf "Sphinx build failed (warnings count as errors)\n" && false) 1006 - cp _build/latex/manual.pdf ../public/html/docs/manual/ 1007 environment: 1008 name: review/$CI_COMMIT_REF_NAME 1009 url: https://$CI_PROJECT_NAMESPACE.gitlab.io/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/public/html/index.html 1010 artifacts: 1011 paths: 1012 - public 1013 except: 1014 variables: 1015 - $PETSC_CI_SCHEDULED =~ /yes/ 1016 1017# 1018# Deploy documentation using GitLab pages 1019# 1020pages: # this job name has special meaning to GitLab 1021 extends: .docs 1022 interruptible: true 1023 script: 1024 - mkdir -p ../public/ && cp public/* ../public/ 1025 - git fetch --unshallow --no-tags origin +release:remotes/origin/release +main:remotes/origin/main 1026 - 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/ 1027 - make clean BUILDDIR="../public/release" 1028 - 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/ 1029 only: 1030 variables: 1031 - $PETSC_CI_SCHEDULED == "yes" 1032 artifacts: 1033 paths: 1034 - public 1035 1036# 1037# 1038# The following tests are experimental; more tests by users at other sites may be added below this. Experimental test 1039# that fail produce a warning, but do not block execution of a pipeline. 1040# 1041 1042.test-experimental: 1043 extends: .test 1044 allow_failure: true 1045 1046