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