xref: /petsc/.gitlab-ci.yml (revision e74c1a09c94c9c735b7ee6225e273c8827fe780d)
1stages:
2  - test
3  - ci-status
4
5variables:
6  GIT_STRATEGY: fetch
7  GIT_DEPTH: 1
8
9.test:
10  stage: test
11  image: jedbrown/mpich
12  before_script:
13    - echo nproc=$(nproc)
14    - cat /proc/cpuinfo
15  script:
16    - python3 ./configure --with-debugging=0 COPTFLAGS='-O -march=native' CXXOPTFLAGS='-O -march=native' FOPTFLAGS='-O -march=native' ${CONFIG_OPTS}
17    - make -j$(nproc) -l$(nproc)
18    - make -j$(nproc) -l$(nproc) -f gmakefile test search="${TEST_SEARCH}"
19
20mpich:
21  extends: .test
22  variables:
23    CONFIG_OPTS: --with-mpi-dir=/usr/local --with-fc=0
24    TEST_SEARCH: snes_tutorials-ex48%
25
26uni-complex-float-int64:
27  extends: .test
28  variables:
29    CONFIG_OPTS: <
30      --with-mpi=0
31      --with-scalar-type=complex --with-precision=single --with-64-bit-indices
32    TEST_SEARCH: ts_tutorials-ex11_adv_2d_quad_%
33
34.status:
35  stage: ci-status
36  image: jedbrown/alpine-curl
37  script:
38    - BUILD_KEY=push BITBUCKET_NAMESPACE=petsc ./.gitlab-build-status.sh
39
40success:
41  extends: .status
42  variables:
43    BUILD_STATUS: passed
44  when: on_success
45
46failure:
47  extends: .status
48  variables:
49    BUILD_STATUS: failed
50  when: on_failure
51