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