xref: /petsc/.gitlab-ci.yml (revision 4d9d3ee56436ad1124f115a64e34bbe1219b07a9)
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
34mcs-fedora:
35  stage: test
36  tags:
37    - mcs
38    - fedora
39  before_script:
40    - hostname
41    - cat /etc/issue
42    - echo $(nproc)
43    - cat /proc/cpuinfo
44  script:
45    - ./configure  --with-debugging=0 COPTFLAGS='-O -march=native' CXXOPTFLAGS='-O -march=native' FOPTFLAGS='-O -march=native'
46    - make
47    - make check
48
49mcs-freebsd:
50  stage: test
51  tags:
52    - mcs
53    - freebsd
54  before_script:
55    - hostname
56    - cat /etc/issue
57  script:
58    - ./configure --with-debugging=0 COPTFLAGS='-O -march=native' CXXOPTFLAGS='-O -march=native' FOPTFLAGS='-O -march=native'
59    - make
60    - make check
61
62.status:
63  stage: ci-status
64  image: jedbrown/alpine-curl
65  script:
66    - BUILD_KEY=push BITBUCKET_NAMESPACE=petsc ./.gitlab-build-status.sh
67
68success:
69  extends: .status
70  variables:
71    BUILD_STATUS: passed
72  when: on_success
73
74failure:
75  extends: .status
76  variables:
77    BUILD_STATUS: failed
78  when: on_failure
79