xref: /petsc/.gitlab-ci.yml (revision 8166029eb307bb0ef117d9bf56c0cbc3fb5c09b0)
1stages:
2  - test
3  - test-long
4variables:
5  GIT_STRATEGY: fetch
6  GIT_DEPTH: 1
7  GIT_CLEAN_FLAGS: -ffdxq
8  PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump
9
10.test:
11  stage: test
12  image: jedbrown/mpich
13  before_script:
14    - echo nproc=$(nproc)
15    - cat /proc/cpuinfo
16  script:
17    - ${PYTHON} ./configure --with-debugging=0 COPTFLAGS='-O -march=native' CXXOPTFLAGS='-O -march=native' FOPTFLAGS='-O -march=native' ${CONFIG_OPTS}
18    - make -j$(nproc) -l$(nproc) CFLAGS=-Werror
19    - make -j$(nproc) -l$(nproc) -f gmakefile.test PETSC_DIR=$PWD test search="${TEST_SEARCH}"
20  artifacts:
21    reports:
22      junit: arch-*/tests/testresults.xml
23
24mpich-cxx-py3:
25  extends: .test
26  variables:
27    PYTHON: python3
28    CONFIG_OPTS: --with-mpi-dir=/usr/local --with-clanguage=cxx --with-fc=0
29    TEST_SEARCH: snes_tutorials-ex48%
30
31uni-complex-float-int64:
32  extends: .test
33  variables:
34    PYTHON: python3
35    CONFIG_OPTS: <
36      --with-mpi=0
37      --with-scalar-type=complex --with-precision=single --with-64-bit-indices
38    TEST_SEARCH: ts_tutorials-ex11_adv_2d_quad_%
39
40c89-mlib-static-py2:
41  extends: .test
42  image: jedbrown/mpich:python2
43  variables:
44    PYTHON: python2
45    CONFIG_OPTS: <
46      --with-mpi-dir=/usr/local
47      --with-single-library=0 --with-shared-libraries=0 'CFLAGS=-std=c89 -pedantic -Wno-long-long -Wno-overlength-strings'
48    TEST_SEARCH: snes_tutorials-ex48%
49
50
51.mcs_test:
52  stage: test-long
53  script:
54    - ./config/examples/${TEST_ARCH}.py
55    - make
56    - make check
57    - make cleantest allgtests-tap TIMEOUT=300
58  artifacts:
59    reports:
60      junit: ${TEST_ARCH}/tests/testresults.xml
61
62.linux_mcs_test:
63  extends: .mcs_test
64  tags:
65    - mcs-linux
66  before_script:
67    - hostname
68    - grep PRETTY_NAME /etc/os-release
69    - echo $(nproc)
70
71.freebsd_mcs_test:
72  extends: .mcs_test
73  tags:
74    - mcs-freebsd
75  before_script:
76    - hostname
77    - freebsd-version
78    - echo $(sysctl -n hw.ncpu)
79
80.osx_mcs_test:
81  extends: .mcs_test
82  tags:
83    - mcs-osx
84  variables:
85    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
86  before_script:
87    - hostname
88    - sw_vers -productVersion
89    - echo $(sysctl -n hw.ncpu)
90
91.opensolaris_mcs_test:
92  extends: .mcs_test
93  tags:
94    - mcs-opensolaris
95  before_script:
96    - hostname
97    - uname -a
98    - echo $(nproc)
99
100linux-gcc-complex-opt:
101  extends: .linux_mcs_test
102  variables:
103    TEST_ARCH: arch-ci-linux-gcc-complex-opt
104
105linux-gcc-pkgs-opt:
106  extends: .linux_mcs_test
107  variables:
108    TEST_ARCH: arch-ci-linux-gcc-pkgs-opt
109
110linux-gcc-quad-64idx-dbg:
111  extends: .linux_mcs_test
112  variables:
113    TEST_ARCH: arch-ci-linux-gcc-quad-64idx-dbg
114
115freebsd-c-single-opt:
116  extends: .freebsd_mcs_test
117  variables:
118    TEST_ARCH: arch-ci-freebsd-c-single-opt
119
120freebsd-cxx-cmplx-64idx-dbg:
121  extends: .freebsd_mcs_test
122  variables:
123    TEST_ARCH: arch-ci-freebsd-cxx-cmplx-64idx-dbg
124
125osx-cxx-pkgs-opt:
126  extends: .osx_mcs_test
127  variables:
128    TEST_ARCH: arch-ci-osx-cxx-pkgs-opt
129
130opensolaris-cmplx-pkgs-dbg:
131  extends: .opensolaris_mcs_test
132  variables:
133    TEST_ARCH: arch-ci-opensolaris-cmplx-pkgs-dbg
134