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